clang 20.0.0git
|
Simple tokenizer for the parser. More...
Public Member Functions | |
CodeTokenizer (StringRef &MatcherCode, Diagnostics *Error) | |
CodeTokenizer (StringRef &MatcherCode, Diagnostics *Error, unsigned CodeCompletionOffset) | |
const TokenInfo & | peekNextToken () const |
Returns but doesn't consume the next token. | |
TokenInfo | consumeNextToken () |
Consumes and returns the next token. | |
TokenInfo | SkipNewlines () |
TokenInfo | consumeNextTokenIgnoreNewlines () |
TokenInfo::TokenKind | nextTokenKind () const |
Simple tokenizer for the parser.
Definition at line 69 of file Parser.cpp.
|
inlineexplicit |
Definition at line 71 of file Parser.cpp.
|
inline |
Definition at line 76 of file Parser.cpp.
|
inline |
Consumes and returns the next token.
Definition at line 87 of file Parser.cpp.
Referenced by consumeNextTokenIgnoreNewlines().
|
inline |
Definition at line 99 of file Parser.cpp.
References consumeNextToken(), clang::ast_matchers::dynamic::Parser::TokenInfo::Kind, SkipNewlines(), and clang::ast_matchers::dynamic::Parser::TokenInfo::TK_Eof.
|
inline |
Definition at line 106 of file Parser.cpp.
References clang::ast_matchers::dynamic::Parser::TokenInfo::Kind.
|
inline |
Returns but doesn't consume the next token.
Definition at line 84 of file Parser.cpp.
|
inline |
Definition at line 93 of file Parser.cpp.
References clang::ast_matchers::dynamic::Parser::TokenInfo::Kind, and clang::ast_matchers::dynamic::Parser::TokenInfo::TK_NewLine.
Referenced by consumeNextTokenIgnoreNewlines().