@@ -73,17 +73,6 @@ namespace clang {
73
73
// / All of the diagnostics that can be emitted by the frontend.
74
74
typedef unsigned kind;
75
75
76
- // Get typedefs for common diagnostics.
77
- enum {
78
- #define DIAG (ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, CATEGORY, \
79
- NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFFERABLE) \
80
- ENUM,
81
- #define COMMONSTART
82
- #include " clang/Basic/DiagnosticCommonKinds.inc"
83
- NUM_BUILTIN_COMMON_DIAGNOSTICS
84
- #undef DIAG
85
- };
86
-
87
76
// / Enum values that allow the client to map NOTEs, WARNINGs, and EXTENSIONs
88
77
// / to either Ignore (nothing), Remark (emit a remark), Warning
89
78
// / (emit a warning) or Error (emit as an error). It allows clients to
@@ -105,20 +94,13 @@ namespace clang {
105
94
Remark // /< A diagnostic that indicates normal progress through
106
95
// /< compilation.
107
96
};
108
- }
97
+ } // end namespace diag
98
+ } // end namespace clang
109
99
110
- namespace diag_compat {
111
- #define DIAG_COMPAT_IDS_BEGIN () enum {
112
- #define DIAG_COMPAT_IDS_END () \
113
- } \
114
- ;
115
- #define DIAG_COMPAT_ID (IDX, NAME, ...) NAME = IDX,
116
- #include " clang/Basic/DiagnosticCommonCompatIDs.inc"
117
- #undef DIAG_COMPAT_ID
118
- #undef DIAG_COMPAT_IDS_BEGIN
119
- #undef DIAG_COMPAT_IDS_END
120
- } // end namespace diag_compat
100
+ // This has to be included *after* the DIAG_START_ enums above are defined.
101
+ #include " clang/Basic/DiagnosticCommonInterface.inc"
121
102
103
+ namespace clang {
122
104
class DiagnosticMapping {
123
105
LLVM_PREFERRED_TYPE (diag::Severity)
124
106
unsigned Severity : 3 ;
0 commit comments