clang
8.0.0
|
RAII class that helps handle the parsing of an open/close delimiter pair, such as braces { ... More...
#include "clang/Parse/RAIIObjectsForParser.h"
Public Member Functions | |
BalancedDelimiterTracker (Parser &p, tok::TokenKind k, tok::TokenKind FinalToken=tok::semi) | |
SourceLocation | getOpenLocation () const |
SourceLocation | getCloseLocation () const |
SourceRange | getRange () const |
bool | consumeOpen () |
bool | expectAndConsume (unsigned DiagID=diag::err_expected, const char *Msg="", tok::TokenKind SkipToTok=tok::unknown) |
bool | consumeClose () |
void | skipToEnd () |
![]() | |
GreaterThanIsOperatorScope (bool >IO, bool Val) | |
~GreaterThanIsOperatorScope () | |
RAII class that helps handle the parsing of an open/close delimiter pair, such as braces { ...
} or parentheses ( ... ).
Definition at line 367 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 386 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 428 of file RAIIObjectsForParser.h.
References clang::Parser::ConsumeToken(), clang::FixItHint::CreateRemoval(), clang::Parser::Diag(), clang::Token::is(), and clang::Parser::NextToken().
Referenced by addConstexprToLambdaDeclSpecifier(), attributeParsedArgsUnevaluated(), CheckArrayDesignatorSyntax(), CheckAvailabilitySpecList(), diagnoseDynamicExceptionSpecification(), getMissingDeclaratorIdLoc(), IsBuiltInOrStandardCXX11Attribute(), clang::Parser::ObjCTypeParamListScope::leave(), clang::Parser::ParseOpenMPParensExpr(), clang::Parser::ParseOpenMPVarList(), clang::Parser::ParseTopLevelDecl(), clang::Parser::ParseUnqualifiedId(), takeDeclAttributes(), and TypeTraitArity().
|
inline |
Definition at line 413 of file RAIIObjectsForParser.h.
References clang::Parser::getLangOpts(), and clang::Token::is().
Referenced by addConstexprToLambdaDeclSpecifier(), attributeParsedArgsUnevaluated(), CheckArrayDesignatorSyntax(), diagnoseDynamicExceptionSpecification(), getMissingDeclaratorIdLoc(), IsBuiltInOrStandardCXX11Attribute(), clang::Parser::ObjCTypeParamListScope::leave(), clang::Parser::ParseOpenMPVarList(), clang::Parser::ParseTopLevelDecl(), clang::Parser::ParseUnqualifiedId(), takeDeclAttributes(), and VersionNumberSeparator().
bool BalancedDelimiterTracker::expectAndConsume | ( | unsigned | DiagID = diag::err_expected , |
const char * | Msg = "" , |
||
tok::TokenKind | SkipToTok = tok::unknown |
||
) |
Definition at line 2256 of file Parser.cpp.
References clang::Parser::StopAtSemi, and clang::Parser::StopBeforeMatch.
Referenced by addConstexprToLambdaDeclSpecifier(), CheckAvailabilitySpecList(), diagnoseUnknownAttributeSubjectSubRule(), clang::Parser::ParseOpenMPParensExpr(), parseOpenMPReductionId(), clang::Parser::ParseOpenMPVarList(), and TypeTraitArity().
|
inline |
Definition at line 410 of file RAIIObjectsForParser.h.
Referenced by addConstexprToLambdaDeclSpecifier(), attributeParsedArgsUnevaluated(), CheckArrayDesignatorSyntax(), CheckAvailabilitySpecList(), diagnoseDynamicExceptionSpecification(), getMissingDeclaratorIdLoc(), IsBuiltInOrStandardCXX11Attribute(), clang::Parser::ObjCTypeParamListScope::leave(), clang::Parser::ParseOpenMPParensExpr(), clang::Parser::ParseOpenMPVarList(), clang::Parser::ParseTopLevelDecl(), clang::Parser::ParseUnqualifiedId(), takeDeclAttributes(), and TypeTraitArity().
|
inline |
Definition at line 409 of file RAIIObjectsForParser.h.
Referenced by addConstexprToLambdaDeclSpecifier(), CheckArrayDesignatorSyntax(), getMissingDeclaratorIdLoc(), clang::Parser::ParseOpenMPParensExpr(), clang::Parser::ParseUnqualifiedId(), takeDeclAttributes(), and TypeTraitArity().
|
inline |
Definition at line 411 of file RAIIObjectsForParser.h.
Referenced by getMissingDeclaratorIdLoc(), and clang::Parser::ParseUnqualifiedId().
void BalancedDelimiterTracker::skipToEnd | ( | ) |
Definition at line 2292 of file Parser.cpp.
References clang::Parser::StopBeforeMatch.
Referenced by CheckArrayDesignatorSyntax(), getMissingDeclaratorIdLoc(), IsBuiltInOrStandardCXX11Attribute(), and TypeTraitArity().