clang 20.0.0git
Public Types | Public Member Functions | List of all members
clang::ast_matchers::dynamic::Diagnostics::Context Struct Reference

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

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 106 of file Diagnostics.h.

Member Enumeration Documentation

◆ ConstructMatcherEnum

About to call the constructor for a matcher.

Enumerator
ConstructMatcher 

Definition at line 109 of file Diagnostics.h.

◆ MatcherArgEnum

About to recurse into parsing one argument for a matcher.

Enumerator
MatcherArg 

Definition at line 113 of file Diagnostics.h.

Constructor & Destructor Documentation

◆ Context() [1/2]

clang::ast_matchers::dynamic::Diagnostics::Context::Context ( ConstructMatcherEnum  ,
Diagnostics Error,
StringRef  MatcherName,
SourceRange  MatcherRange 
)

◆ Context() [2/2]

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

◆ ~Context()

clang::ast_matchers::dynamic::Diagnostics::Context::~Context ( )

Definition at line 39 of file Diagnostics.cpp.


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