clang 20.0.0git
|
Class defining a parser context. More...
#include "clang/ASTMatchers/Dynamic/Diagnostics.h"
Public Types | |
enum | ConstructMatcherEnum { ConstructMatcher } |
About to call the constructor for a matcher. More... | |
enum | MatcherArgEnum { MatcherArg } |
About to recurse into parsing one argument for a matcher. More... | |
Public Member Functions | |
Context (ConstructMatcherEnum, Diagnostics *Error, StringRef MatcherName, SourceRange MatcherRange) | |
Context (MatcherArgEnum, Diagnostics *Error, StringRef MatcherName, SourceRange MatcherRange, unsigned ArgNumber) | |
~Context () | |
Class defining a parser context.
Used by the parser to specify (possibly recursive) contexts where the parsing/construction can fail. Any error triggered within a context will keep information about the context chain. This class should be used as a RAII instance in the stack.
Definition at line 106 of file Diagnostics.h.
About to call the constructor for a matcher.
Enumerator | |
---|---|
ConstructMatcher |
Definition at line 109 of file Diagnostics.h.
About to recurse into parsing one argument for a matcher.
Enumerator | |
---|---|
MatcherArg |
Definition at line 113 of file Diagnostics.h.
clang::ast_matchers::dynamic::Diagnostics::Context::Context | ( | ConstructMatcherEnum | , |
Diagnostics * | Error, | ||
StringRef | MatcherName, | ||
SourceRange | MatcherRange | ||
) |
Definition at line 23 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::CT_MatcherConstruct.
clang::ast_matchers::dynamic::Diagnostics::Context::Context | ( | MatcherArgEnum | , |
Diagnostics * | Error, | ||
StringRef | MatcherName, | ||
SourceRange | MatcherRange, | ||
unsigned | ArgNumber | ||
) |
Definition at line 30 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::CT_MatcherArg.
clang::ast_matchers::dynamic::Diagnostics::Context::~Context | ( | ) |
Definition at line 39 of file Diagnostics.cpp.