#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/AllDiagnostics.h"
#include "clang/Basic/DiagnosticCategories.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/ErrorHandling.h"
#include <map>
#include "clang/Basic/DiagnosticCommonKinds.inc"
#include "clang/Basic/DiagnosticDriverKinds.inc"
#include "clang/Basic/DiagnosticFrontendKinds.inc"
#include "clang/Basic/DiagnosticSerializationKinds.inc"
#include "clang/Basic/DiagnosticLexKinds.inc"
#include "clang/Basic/DiagnosticParseKinds.inc"
#include "clang/Basic/DiagnosticASTKinds.inc"
#include "clang/Basic/DiagnosticCommentKinds.inc"
#include "clang/Basic/DiagnosticSemaKinds.inc"
#include "clang/Basic/DiagnosticAnalysisKinds.inc"
#include "clang/Basic/DiagnosticGroups.inc"
Go to the source code of this file.
|
#define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR,SHOWINSYSHEADER, CATEGORY) |
|
#define | CATEGORY(NAME, PREV) |
|
#define | GET_CATEGORY_TABLE |
|
#define | CATEGORY(X, ENUM) { X, STR_SIZE(X, uint8_t) }, |
|
#define | GET_DIAG_ARRAYS |
|
#define | GET_DIAG_TABLE |
|
#define CATEGORY |
( |
|
NAME, |
|
|
|
PREV |
|
) |
| |
Value:if (DiagID > DIAG_START_##NAME) {
\
Offset += NUM_BUILTIN_##PREV##_DIAGNOSTICS - DIAG_START_##PREV - 1;
\
ID -= DIAG_START_##NAME - DIAG_START_##PREV; \
}
Referenced by GetDiagInfo().
#define CATEGORY |
( |
|
X, |
|
|
|
ENUM |
|
) |
| { X, STR_SIZE(X, uint8_t) }, |
#define DIAG |
( |
|
ENUM, |
|
|
|
CLASS, |
|
|
|
DEFAULT_SEVERITY, |
|
|
|
DESC, |
|
|
|
GROUP, |
|
|
|
SFINAE, |
|
|
|
NOWERROR, |
|
|
|
SHOWINSYSHEADER, |
|
|
|
CATEGORY |
|
) |
| |
Value:{ \
diag::ENUM, DEFAULT_SEVERITY, CLASS, DiagnosticIDs::SFINAE, NOWERROR, \
} \
,
#define CATEGORY(NAME, PREV)
#define STR_SIZE(str, fieldTy)
#define GET_CATEGORY_TABLE |
static const StaticDiagInfoRec* GetDiagInfo |
( |
unsigned |
DiagID | ) |
|
|
static |
GetDiagInfo - Return the StaticDiagInfoRec entry for the specified DiagID, or null if the ID is invalid.
Definition at line 98 of file DiagnosticIDs.cpp.
References ANALYSIS, clang::begin(), CATEGORY, COMMENT, clang::diag::DIAG_START_COMMON, clang::diag::DIAG_UPPER_LIMIT, clang::end(), ID, StaticDiagInfo, and StaticDiagInfoSize.
Referenced by getBuiltinDiagClass(), clang::DiagnosticIDs::getCategoryNumberForDiag(), GetDefaultDiagMapping(), clang::DiagnosticIDs::getDescription(), clang::DiagnosticIDs::getDiagnosticSFINAEResponse(), getDiagnosticsInGroup(), and clang::DiagnosticIDs::getWarningOptionForDiag().
const StaticDiagCategoryRec CategoryNameTable[] |
|
static |
Initial value:= {
#define GET_CATEGORY_TABLE
#define CATEGORY(X, ENUM)
{ nullptr, 0 }
}
Definition at line 209 of file DiagnosticIDs.cpp.
const WarningOption OptionTable[] |
|
static |
const StaticDiagInfoRec StaticDiagInfo[] |
|
static |