1 | |
2 | namespace clang { |
3 | namespace diag { |
4 | enum { |
5 | #define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \ |
6 | SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY) \ |
7 | ENUM, |
8 | #define ANALYSISSTART |
9 | #include "clang/Basic/DiagnosticAnalysisKinds.inc" |
10 | #undef DIAG |
11 | NUM_BUILTIN_ANALYSIS_DIAGNOSTICS |
12 | }; |
13 | |
14 | #define DIAG_ENUM(ENUM_NAME) \ |
15 | namespace ENUM_NAME { \ |
16 | enum { |
17 | #define DIAG_ENUM_ITEM(IDX, NAME) NAME = IDX, |
18 | #define DIAG_ENUM_END() \ |
19 | } \ |
20 | ; \ |
21 | } |
22 | #include "clang/Basic/DiagnosticAnalysisEnums.inc" |
23 | #undef DIAG_ENUM_END |
24 | #undef DIAG_ENUM_ITEM |
25 | #undef DIAG_ENUM |
26 | } // end namespace diag |
27 | |
28 | namespace diag_compat { |
29 | #define DIAG_COMPAT_IDS_BEGIN() enum { |
30 | #define DIAG_COMPAT_IDS_END() \ |
31 | } \ |
32 | ; |
33 | #define DIAG_COMPAT_ID(IDX, NAME, ...) NAME = IDX, |
34 | #include "clang/Basic/DiagnosticAnalysisCompatIDs.inc" |
35 | #undef DIAG_COMPAT_ID |
36 | #undef DIAG_COMPAT_IDS_BEGIN |
37 | #undef DIAG_COMPAT_IDS_END |
38 | } // end namespace diag_compat |
39 | } // end namespace clang |
40 | |