Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:49

0001 //===--- DiagnosticParse.h - Diagnostics for libparse -----------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_BASIC_DIAGNOSTICPARSE_H
0010 #define LLVM_CLANG_BASIC_DIAGNOSTICPARSE_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 PARSESTART
0021 #include "clang/Basic/DiagnosticParseKinds.inc"
0022 #undef DIAG
0023   NUM_BUILTIN_PARSE_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/DiagnosticParseEnums.inc"
0035 #undef DIAG_ENUM_END
0036 #undef DIAG_ENUM_ITEM
0037 #undef DIAG_ENUM
0038 } // end namespace diag
0039 } // end namespace clang
0040 
0041 #endif // LLVM_CLANG_BASIC_DIAGNOSTICPARSE_H