clang 20.0.0git
|
Defines interfaces for operating "Token" in the clang syntax-tree. More...
#include "clang/Tooling/Syntax/TokenManager.h"
Public Types | |
using | Key = uintptr_t |
A key to identify a specific token. | |
Public Member Functions | |
virtual | ~TokenManager ()=default |
virtual llvm::StringLiteral | kind () const =0 |
Describes what the exact class kind of the TokenManager is. | |
virtual llvm::StringRef | getText (Key K) const =0 |
Defines interfaces for operating "Token" in the clang syntax-tree.
Definition at line 29 of file TokenManager.h.
A key to identify a specific token.
The token concept depends on the underlying implementation – it can be a spelled token from the original source file or an expanded token. The syntax-tree Leaf node holds a Key.
Definition at line 40 of file TokenManager.h.
|
virtualdefault |
|
pure virtual |
Implemented in clang::syntax::TokenBufferTokenManager.
Referenced by clang::syntax::Node::dumpTokens().
|
pure virtual |
Describes what the exact class kind of the TokenManager is.
Implemented in clang::syntax::TokenBufferTokenManager.
Referenced by clang::syntax::TokenBufferTokenManager::classof().