clang API Documentation

Public Types | Public Member Functions
clang::ast_matchers::dynamic::Diagnostics::Context Struct Reference

Class defining a parser context. More...

#include <Diagnostics.h>

List of all members.

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 ()

Detailed Description

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.


Member Enumeration Documentation

About to call the constructor for a matcher.

Enumerator:
ConstructMatcher 

Definition at line 105 of file Diagnostics.h.

About to recurse into parsing one argument for a matcher.

Enumerator:
MatcherArg 

Definition at line 109 of file Diagnostics.h.


Constructor & Destructor Documentation

clang::ast_matchers::dynamic::Diagnostics::Context::Context ( ConstructMatcherEnum  ,
Diagnostics Error,
StringRef  MatcherName,
const SourceRange MatcherRange 
)
clang::ast_matchers::dynamic::Diagnostics::Context::Context ( MatcherArgEnum  ,
Diagnostics Error,
StringRef  MatcherName,
const SourceRange MatcherRange,
unsigned  ArgNumber 
)

Definition at line 41 of file Diagnostics.cpp.

References clang::diag::Error.


The documentation for this struct was generated from the following files: