A token coming directly from a file or from a macro invocation. More...
#include "clang/Tooling/Syntax/Tokens.h"
A token coming directly from a file or from a macro invocation.
Has just enough information to locate the token in the source code. Can represent both expanded and spelled tokens.
Definition at line 103 of file Tokens.h.
◆ Token() [1/2] ◆ Token() [2/2] ◆ dumpForTests() std::string syntax::Token::dumpForTests ( const SourceManager & SM ) const ◆ endLocation() ◆ kind() ◆ length() unsigned clang::syntax::Token::length ( ) const inlineDefinition at line 116 of file Tokens.h.
◆ location() ◆ range() [1/2] ◆ range() [2/2]Given two tokens inside the same file, returns a file range that starts at First
and ends at Last
.
EXPECTS: First and Last are file tokens from the same file, Last starts after First.
Definition at line 169 of file Tokens.cpp.
References clang::First, clang::Last, and SM.
◆ str() std::string syntax::Token::str ( ) const ◆ text() llvm::StringRef syntax::Token::text ( const SourceManager & SM ) constThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4