struct DiagStateMap::File
Declaration
struct DiagStateMap::File { /* full declaration omitted */ };
Description
Description of the diagnostic states and state transitions for a particular FileID.
Declared at: clang/include/clang/Basic/Diagnostic.h:412
Member Variables
- public clang::DiagnosticsEngine::DiagStateMap::File* Parent = nullptr
- The diagnostic state for the parent file. This is strictly redundant, as looking up the DecomposedIncludedLoc for the FileID in the Files map would give us this, but we cache it here for performance.
- public unsigned int ParentOffset = 0
- The offset of this file within its parent.
- public bool HasLocalTransitions = false
- Whether this file has any local (not imported from an AST file) diagnostic state transitions.
- public llvm::SmallVector<DiagStatePoint, 4> StateTransitions
- The points within the file where the state changes. There will always be at least one of these (the state on entry to the file).
Method Overview
- public clang::DiagnosticsEngine::DiagState * lookup(unsigned int Offset) const
Methods
ΒΆclang::DiagnosticsEngine::DiagState* lookup(
unsigned int Offset) const
clang::DiagnosticsEngine::DiagState* lookup(
unsigned int Offset) const
Declared at: clang/include/clang/Basic/Diagnostic.h:429
Parameters
- unsigned int Offset