|
clang
3.8.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 () |
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 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 skipToEnd().
|
inline |
Definition at line 413 of file RAIIObjectsForParser.h.
References clang::Parser::getLangOpts(), and clang::Token::is().
| bool BalancedDelimiterTracker::expectAndConsume | ( | unsigned | DiagID = diag::err_expected, |
| const char * | Msg = "", |
||
| tok::TokenKind | SkipToTok = tok::unknown |
||
| ) |
Definition at line 2066 of file Parse/Parser.cpp.
References clang::Parser::StopAtSemi.
|
inline |
Definition at line 410 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 409 of file RAIIObjectsForParser.h.
|
inline |
Definition at line 411 of file RAIIObjectsForParser.h.
| void BalancedDelimiterTracker::skipToEnd | ( | ) |
Definition at line 2102 of file Parse/Parser.cpp.
References consumeClose(), and clang::Parser::StopBeforeMatch.
1.8.6