Skip to content

Commit 2855ef3

Browse files
author
Saidhon Orifov
committed
Revert change for storedDiagnosticInfos
1 parent ed768ce commit 2855ef3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/AST/DiagnosticEngine.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,14 @@ enum LocalDiagID : uint32_t {
7878

7979
// TODO: categorization
8080
static const constexpr StoredDiagnosticInfo storedDiagnosticInfos[] = {
81-
#define DIAG(KIND, ID, Options, Text, Signature) \
82-
StoredDiagnosticInfo(KIND, DiagnosticOptions::Options),
81+
#define ERROR(ID, Options, Text, Signature) \
82+
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),
8389
#include "swift/AST/DiagnosticsAll.def"
8490
};
8591
static_assert(sizeof(storedDiagnosticInfos) / sizeof(StoredDiagnosticInfo) ==

0 commit comments

Comments
 (0)