|
clang 24.0.0git
|
#include "clang/Basic/DiagnosticIDs.h"#include "clang/Basic/AllDiagnostics.h"#include "clang/Basic/DiagnosticCategories.h"#include "clang/Basic/LangOptions.h"#include "clang/Basic/SourceManager.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringTable.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/ErrorHandling.h"#include <map>#include <optional>#include "clang/Basic/DiagnosticStableIDs.inc"#include "clang/Basic/AllDiagnosticKinds.inc"#include "clang/Basic/DiagnosticCommonKinds.inc"#include "clang/Basic/DiagnosticDriverKinds.inc"#include "clang/Basic/DiagnosticFrontendKinds.inc"#include "clang/Basic/DiagnosticCodeGenKinds.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/DiagnosticCrossTUKinds.inc"#include "clang/Basic/DiagnosticSemaKinds.inc"#include "clang/Basic/DiagnosticAnalysisKinds.inc"#include "clang/Basic/DiagnosticRefactoringKinds.inc"#include "clang/Basic/DiagnosticInstallAPIKinds.inc"#include "clang/Basic/DiagnosticTrapKinds.inc"#include "clang/Basic/DiagnosticGroups.inc"#include "clang/Basic/DiagnosticAllCompatIDs.inc"Go to the source code of this file.
Classes | |
| class | clang::diag::CustomDiagInfo |
Namespaces | |
| namespace | clang |
| Top level wrappers for InstallAPI frontend operations. | |
| namespace | clang::diag |
Macros | |
| #define | GET_DIAG_STABLE_ID_ARRAYS |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | STRINGIFY_NAME(NAME) |
| #define | VALIDATE_DIAG_SIZE(NAME) |
| #define | DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY, STABLE_ID, LEGACY_STABLE_IDS) |
| #define | CATEGORY(NAME, PREV) |
| #define | GET_CATEGORY_TABLE |
| #define | CATEGORY(X, ENUM) |
| #define | GET_DIAG_ARRAYS |
| #define | DIAG_ENTRY(GroupName, FlagNameOffset, Members, SubGroups, Docs) |
| #define | DIAG_COMPAT_IDS_BEGIN() |
| #define | DIAG_COMPAT_IDS_END() |
| #define | DIAG_COMPAT_ID(Value, Name, Std, Diag, DiagPre) |
Typedefs | |
| using | clang::diag::CustomDiagDesc = DiagnosticIDs::CustomDiagDesc |
Functions | |
| static const StaticDiagInfoRec * | GetDiagInfo (unsigned DiagID) |
| GetDiagInfo - Return the StaticDiagInfoRec entry for the specified DiagID, or null if the ID is invalid. | |
| static DiagnosticIDs::Level | toLevel (diag::Severity SV) |
| static bool | getDiagnosticsInGroup (diag::Flavor Flavor, const WarningOption *Group, SmallVectorImpl< diag::kind > &Diags, diag::CustomDiagInfo *CustomDiagInfo) |
Return true if any diagnostics were found in this group, even if they were filtered out due to having the wrong flavor. | |
| template<class Func> | |
| static void | forEachSubGroupImpl (const WarningOption *Group, Func func) |
| template<class Func> | |
| static void | forEachSubGroup (diag::Group Group, Func func) |
Variables | |
| static const unsigned | StaticDiagInfoSize = std::size(StaticDiagInfo) |
| static const StaticDiagCategoryRec | CategoryNameTable [] |
| static const WarningOption | OptionTable [] |
| #define CATEGORY | ( | NAME, | |
| PREV ) |
Referenced by GetDiagInfo().
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
Referenced by CheckProtocolMethodDefs(), and clang::SemaObjC::DiagnoseUnusedBackingIvarInAccessor().
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
| #define DIAG | ( | ENUM, | |
| CLASS, | |||
| DEFAULT_SEVERITY, | |||
| DESC, | |||
| GROUP, | |||
| SFINAE, | |||
| NOWERROR, | |||
| SHOWINSYSHEADER, | |||
| SHOWINSYSMACRO, | |||
| DEFERRABLE, | |||
| CATEGORY, | |||
| STABLE_ID, | |||
| LEGACY_STABLE_IDS ) |
Definition at line 43 of file DiagnosticIDs.cpp.
| #define DIAG_COMPAT_IDS_BEGIN | ( | ) |
| #define DIAG_COMPAT_IDS_END | ( | ) |
| #define DIAG_ENTRY | ( | GroupName, | |
| FlagNameOffset, | |||
| Members, | |||
| SubGroups, | |||
| Docs ) |
| #define GET_CATEGORY_TABLE |
| #define GET_DIAG_ARRAYS |
Definition at line 688 of file DiagnosticIDs.cpp.
| #define GET_DIAG_STABLE_ID_ARRAYS |
Definition at line 35 of file DiagnosticIDs.cpp.
| #define STRINGIFY_NAME | ( | NAME | ) |
Definition at line 163 of file DiagnosticIDs.cpp.
| #define VALIDATE_DIAG_SIZE | ( | NAME | ) |
Definition at line 164 of file DiagnosticIDs.cpp.
|
static |
Definition at line 822 of file DiagnosticIDs.cpp.
References forEachSubGroupImpl(), clang::Func, and OptionTable.
Referenced by clang::DiagnosticIDs::setGroupNoWarningsAsError(), and clang::DiagnosticIDs::setGroupSeverity().
|
static |
Definition at line 813 of file DiagnosticIDs.cpp.
References forEachSubGroupImpl(), clang::Func, int16_t, and OptionTable.
Referenced by forEachSubGroup(), and forEachSubGroupImpl().
|
static |
GetDiagInfo - Return the StaticDiagInfoRec entry for the specified DiagID, or null if the ID is invalid.
Definition at line 233 of file DiagnosticIDs.cpp.
References CATEGORY, COMMENT, clang::Found, and StaticDiagInfoSize.
Referenced by clang::DiagnosticIDs::getCategoryNumberForDiag(), clang::DiagnosticIDs::getDefaultMapping(), clang::DiagnosticIDs::getDescription(), clang::DiagnosticIDs::getDiagnosticSFINAEResponse(), getDiagnosticsInGroup(), clang::DiagnosticIDs::getGroupForDiag(), clang::DiagnosticIDs::getLegacyStableIDs(), clang::DiagnosticIDs::getStableID(), clang::DiagnosticIDs::isDeferrable(), and clang::DiagnosticIDs::shouldSuppressAsSystemWarning().
|
static |
Return true if any diagnostics were found in this group, even if they were filtered out due to having the wrong flavor.
Definition at line 764 of file DiagnosticIDs.cpp.
References GetDiagInfo(), getDiagnosticsInGroup(), clang::diag::CustomDiagInfo::getDiagsInGroup(), int16_t, clang::Member, clang::NotFound, OptionTable, and clang::diag::Remark.
Referenced by getDiagnosticsInGroup().
|
static |
Definition at line 508 of file DiagnosticIDs.cpp.
References clang::diag::Error, clang::DiagnosticIDs::Error, clang::diag::Fatal, clang::DiagnosticIDs::Fatal, clang::diag::Ignored, clang::DiagnosticIDs::Ignored, clang::diag::Remark, clang::DiagnosticIDs::Remark, clang::diag::Warning, and clang::DiagnosticIDs::Warning.
|
static |
Definition at line 387 of file DiagnosticIDs.cpp.
Referenced by clang::DiagnosticIDs::getCategoryNameFromID(), and clang::DiagnosticIDs::getNumberOfCategories().
|
static |
Definition at line 704 of file DiagnosticIDs.cpp.
Referenced by forEachSubGroup(), forEachSubGroupImpl(), clang::DiagnosticIDs::getDiagnosticsInGroup(), getDiagnosticsInGroup(), clang::DiagnosticIDs::getGroupForWarningOption(), clang::DiagnosticIDs::getNearestOption(), clang::DiagnosticIDs::getWarningOptionDocumentation(), and clang::DiagnosticIDs::getWarningOptionForGroup().
|
static |
Definition at line 229 of file DiagnosticIDs.cpp.
Referenced by clang::DiagnosticIDs::getAllDiagnostics(), and GetDiagInfo().