|
clang 22.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 clang::GreaterThanIsOperatorScope::GreaterThanIsOperatorScope(), and true.
|
inline |
Definition at line 481 of file RAIIObjectsForParser.h.
References clang::FixItHint::CreateRemoval().
Referenced by parseOpenMPAllocateClauseModifiers(), clang::Parser::ParseOpenMPVarList(), and skipToEnd().
|
inline |
Definition at line 466 of file RAIIObjectsForParser.h.
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 2641 of file Parser.cpp.
References 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 2677 of file Parser.cpp.
References consumeClose(), and clang::Parser::StopBeforeMatch.