|
clang
5.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 () |
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 366 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 387 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 429 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 414 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 2207 of file Parser.cpp.
References clang::Parser::StopAtSemi.
Referenced by clang::Parser::ParseOpenMPParensExpr(), and clang::Parser::ParseOpenMPVarList().
|
inline |
Definition at line 411 of file RAIIObjectsForParser.h.
Referenced by clang::Parser::ParseOpenMPParensExpr().
|
inline |
Definition at line 410 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 412 of file RAIIObjectsForParser.h.
| void BalancedDelimiterTracker::skipToEnd | ( | ) |
Definition at line 2243 of file Parser.cpp.
References consumeClose(), and clang::Parser::StopBeforeMatch.
1.8.6