clang API Documentation
Class defining a parser context. More...
#include <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, const SourceRange &MatcherRange) | |
Context (MatcherArgEnum, Diagnostics *Error, StringRef MatcherName, const 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 102 of file Diagnostics.h.
About to call the constructor for a matcher.
Definition at line 105 of file Diagnostics.h.
About to recurse into parsing one argument for a matcher.
Definition at line 109 of file Diagnostics.h.
clang::ast_matchers::dynamic::Diagnostics::Context::Context | ( | ConstructMatcherEnum | , |
Diagnostics * | Error, | ||
StringRef | MatcherName, | ||
const SourceRange & | MatcherRange | ||
) |
Definition at line 25 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::CT_MatcherConstruct.
clang::ast_matchers::dynamic::Diagnostics::Context::Context | ( | MatcherArgEnum | , |
Diagnostics * | Error, | ||
StringRef | MatcherName, | ||
const SourceRange & | MatcherRange, | ||
unsigned | ArgNumber | ||
) |
Definition at line 32 of file Diagnostics.cpp.
References clang::ast_matchers::dynamic::Diagnostics::CT_MatcherArg.
Definition at line 41 of file Diagnostics.cpp.
References clang::diag::Error.