@@ -93,19 +93,13 @@ static_assert(sizeof(storedDiagnosticInfos) / sizeof(StoredDiagnosticInfo) ==
93
93
"array size mismatch");
94
94
95
95
static constexpr const char * const diagnosticStrings[] = {
96
- #define ERROR (ID, Options, Text, Signature ) Text,
97
- #define WARNING (ID, Options, Text, Signature ) Text,
98
- #define NOTE (ID, Options, Text, Signature ) Text,
99
- #define REMARK (ID, Options, Text, Signature ) Text,
96
+ #define DIAG (KIND, ID, Options, Text, Signature ) Text,
100
97
#include " swift/AST/DiagnosticsAll.def"
101
98
" <not a diagnostic>" ,
102
99
};
103
100
104
101
static constexpr const char *const debugDiagnosticStrings[] = {
105
- #define ERROR (ID, Options, Text, Signature ) Text " [" #ID " ]" ,
106
- #define WARNING (ID, Options, Text, Signature ) Text " [" #ID " ]" ,
107
- #define NOTE (ID, Options, Text, Signature ) Text " [" #ID " ]" ,
108
- #define REMARK (ID, Options, Text, Signature ) Text " [" #ID " ]" ,
102
+ #define DIAG (KIND, ID, Options, Text, Signature ) Text " [" #ID " ]" ,
109
103
#include " swift/AST/DiagnosticsAll.def"
110
104
" <not a diagnostic>" ,
111
105
};
0 commit comments