clang 20.0.0git
DiagnosticInstallAPI.h
Go to the documentation of this file.
1//===--- DiagnosticInstallAPI.h - Diagnostics for InstallAPI-----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_BASIC_DIAGNOSTICINSTALLAPI_H
10#define LLVM_CLANG_BASIC_DIAGNOSTICINSTALLAPI_H
11
13namespace clang {
14namespace diag {
15enum {
16#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
17 SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY) \
18 ENUM,
19#define INSTALLAPISTART
20#include "clang/Basic/DiagnosticInstallAPIKinds.inc"
21#undef DIAG
23};
24
25#define DIAG_ENUM(ENUM_NAME) \
26 namespace ENUM_NAME { \
27 enum {
28#define DIAG_ENUM_ITEM(IDX, NAME) NAME = IDX,
29#define DIAG_ENUM_END() \
30 } \
31 ; \
32 }
33#include "clang/Basic/DiagnosticInstallAPIEnums.inc"
34#undef DIAG_ENUM_END
35#undef DIAG_ENUM_ITEM
36#undef DIAG_ENUM
37} // namespace diag
38} // namespace clang
39#endif // LLVM_CLANG_BASIC_DIAGNOSTICINSTALLAPI_H
Defines the Diagnostic-related interfaces.
@ NUM_BUILTIN_INSTALLAPI_DIAGNOSTICS
The JSON file list parser is used to communicate input to InstallAPI.