Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===--- DiagnosticInstallAPI.h - Diagnostics for InstallAPI-----*- 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_DIAGNOSTICINSTALLAPI_H
0010 #define LLVM_CLANG_BASIC_DIAGNOSTICINSTALLAPI_H
0011 
0012 #include "clang/Basic/Diagnostic.h"
0013 namespace clang {
0014 namespace diag {
0015 enum {
0016 #define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR,      \
0017              SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY)            \
0018   ENUM,
0019 #define INSTALLAPISTART
0020 #include "clang/Basic/DiagnosticInstallAPIKinds.inc"
0021 #undef DIAG
0022   NUM_BUILTIN_INSTALLAPI_DIAGNOSTICS
0023 };
0024 
0025 #define DIAG_ENUM(ENUM_NAME)                                                   \
0026   namespace ENUM_NAME {                                                        \
0027   enum {
0028 #define DIAG_ENUM_ITEM(IDX, NAME) NAME = IDX,
0029 #define DIAG_ENUM_END()                                                        \
0030   }                                                                            \
0031   ;                                                                            \
0032   }
0033 #include "clang/Basic/DiagnosticInstallAPIEnums.inc"
0034 #undef DIAG_ENUM_END
0035 #undef DIAG_ENUM_ITEM
0036 #undef DIAG_ENUM
0037 } // namespace diag
0038 } // namespace clang
0039 #endif // LLVM_CLANG_BASIC_DIAGNOSTICINSTALLAPI_H