clang
3.9.0
|
RAII class that helps handle the parsing of an open/close delimiter pair, such as braces { ... More...
#include <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 365 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 clang::Parser::ParseOpenMPParensExpr(), clang::Parser::ParseOpenMPVarList(), and skipToEnd().
|
inline |
Definition at line 413 of file RAIIObjectsForParser.h.
References clang::Parser::getLangOpts(), and clang::Token::is().
Referenced by clang::Parser::ParseOpenMPVarList().
bool BalancedDelimiterTracker::expectAndConsume | ( | unsigned | DiagID = diag::err_expected , |
const char * | Msg = "" , |
||
tok::TokenKind | SkipToTok = tok::unknown |
||
) |
Definition at line 2085 of file Parse/Parser.cpp.
References clang::Parser::StopAtSemi.
Referenced by clang::Parser::ParseOpenMPParensExpr(), and clang::Parser::ParseOpenMPVarList().
|
inline |
Definition at line 410 of file RAIIObjectsForParser.h.
Referenced by clang::Parser::ParseOpenMPParensExpr().
|
inline |
Definition at line 409 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 411 of file RAIIObjectsForParser.h.
void BalancedDelimiterTracker::skipToEnd | ( | ) |
Definition at line 2121 of file Parse/Parser.cpp.
References consumeClose(), and clang::Parser::StopBeforeMatch.