Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===--- DiagnosticAnalysis.h - Diagnostics for libanalysis -----*- 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_DIAGNOSTICANALYSIS_H
0010 #define LLVM_CLANG_BASIC_DIAGNOSTICANALYSIS_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 ANALYSISSTART
0021 #include "clang/Basic/DiagnosticAnalysisKinds.inc"
0022 #undef DIAG
0023   NUM_BUILTIN_ANALYSIS_DIAGNOSTICS
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/DiagnosticAnalysisEnums.inc"
0034 #undef DIAG_ENUM_END
0035 #undef DIAG_ENUM_ITEM
0036 #undef DIAG_ENUM
0037 } // end namespace diag
0038 } // end namespace clang
0039 
0040 #endif // LLVM_CLANG_BASIC_DIAGNOSTICANALYSIS_H