We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed768ce commit 2855ef3Copy full SHA for 2855ef3
lib/AST/DiagnosticEngine.cpp
@@ -78,8 +78,14 @@ enum LocalDiagID : uint32_t {
78
79
// TODO: categorization
80
static const constexpr StoredDiagnosticInfo storedDiagnosticInfos[] = {
81
-#define DIAG(KIND, ID, Options, Text, Signature) \
82
- StoredDiagnosticInfo(KIND, DiagnosticOptions::Options),
+#define ERROR(ID, Options, Text, Signature) \
+ StoredDiagnosticInfo(DiagnosticKind::Error, DiagnosticOptions::Options),
83
+#define WARNING(ID, Options, Text, Signature) \
84
+ StoredDiagnosticInfo(DiagnosticKind::Warning, DiagnosticOptions::Options),
85
+#define NOTE(ID, Options, Text, Signature) \
86
+ StoredDiagnosticInfo(DiagnosticKind::Note, DiagnosticOptions::Options),
87
+#define REMARK(ID, Options, Text, Signature) \
88
+ StoredDiagnosticInfo(DiagnosticKind::Remark, DiagnosticOptions::Options),
89
#include "swift/AST/DiagnosticsAll.def"
90
};
91
static_assert(sizeof(storedDiagnosticInfos) / sizeof(StoredDiagnosticInfo) ==
0 commit comments