[Diagnostics] Add -[no-]warning-as-error flags for precise control over warning behavior

This commit adds new compiler options -no-warning-as-error/-warning-as-error which allows users to specify behavior for exact warnings and warning groups.
This commit is contained in:
Dmitrii Galimzianov
2024-06-17 01:00:42 +02:00
parent 3e21fc6610
commit 28883b6654
38 changed files with 793 additions and 114 deletions

View File

@@ -23,8 +23,8 @@
namespace swift {
namespace diag {
// Declare common diagnostics objects with their appropriate types.
#define DIAG(KIND,ID,Options,Text,Signature) \
extern detail::DiagWithArguments<void Signature>::type ID;
#define DIAG(KIND, ID, Group, Options, Text, Signature) \
extern detail::DiagWithArguments<void Signature>::type ID;
#include "DiagnosticsModuleDiffer.def"
}
}