File indexing completed on 2026-05-10 08:36:49
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_CLANG_BASIC_DIAGNOSTICCOMMENT_H
0010 #define LLVM_CLANG_BASIC_DIAGNOSTICCOMMENT_H
0011
0012 #include "clang/Basic/Diagnostic.h"
0013
0014 namespace clang {
0015 namespace diag {
0016 enum {
0017 #define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
0018 SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY) \
0019 ENUM,
0020 #define COMMENTSTART
0021 #include "clang/Basic/DiagnosticCommentKinds.inc"
0022 #undef DIAG
0023 NUM_BUILTIN_COMMENT_DIAGNOSTICS
0024 };
0025
0026 #define DIAG_ENUM(ENUM_NAME) \
0027 namespace ENUM_NAME { \
0028 enum {
0029 #define DIAG_ENUM_ITEM(IDX, NAME) NAME = IDX,
0030 #define DIAG_ENUM_END() \
0031 } \
0032 ; \
0033 }
0034 #include "clang/Basic/DiagnosticCommentEnums.inc"
0035 #undef DIAG_ENUM_END
0036 #undef DIAG_ENUM_ITEM
0037 #undef DIAG_ENUM
0038 }
0039 }
0040
0041 #endif