clang 20.0.0git
|
RAII class that helps handle the parsing of an open/close delimiter pair, such as braces { ... } or parentheses ( ... ). 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 () |
Public Member Functions inherited from clang::GreaterThanIsOperatorScope | |
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 420 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 439 of file RAIIObjectsForParser.h.
References P.
|
inline |
Definition at line 481 of file RAIIObjectsForParser.h.
References clang::FixItHint::CreateRemoval(), and P.
Referenced by parseOpenMPAllocateClauseModifiers(), clang::Parser::ParseOpenMPVarList(), and skipToEnd().
|
inline |
Definition at line 466 of file RAIIObjectsForParser.h.
References P.
Referenced by parseOpenMPAllocateClauseModifiers(), and clang::Parser::ParseOpenMPVarList().
bool BalancedDelimiterTracker::expectAndConsume | ( | unsigned | DiagID = diag::err_expected , |
const char * | Msg = "" , |
||
tok::TokenKind | SkipToTok = tok::unknown |
||
) |
Definition at line 2779 of file Parser.cpp.
References clang::Parser::getLangOpts(), clang::Token::getLocation(), clang::Parser::SkipUntil(), and clang::Parser::StopAtSemi.
|
inline |
Definition at line 463 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 462 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 464 of file RAIIObjectsForParser.h.
void BalancedDelimiterTracker::skipToEnd | ( | ) |
Definition at line 2815 of file Parser.cpp.
References consumeClose(), clang::Parser::SkipUntil(), and clang::Parser::StopBeforeMatch.