clang: clang::syntax::TokenManager Class Reference (original) (raw)

Defines interfaces for operating "Token" in the clang syntax-tree. More...

#include "[clang/Tooling/Syntax/TokenManager.h](TokenManager%5F8h%5Fsource.html)"

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](classclang%5F1%5F1syntax%5F1%5F1TokenManager.html "Defines interfaces for operating "Token" in the clang syntax-tree.") 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.

Key

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.

virtual clang::syntax::TokenManager::~TokenManager ( ) virtualdefault

getText()

virtual llvm::StringRef clang::syntax::TokenManager::getText ( Key K) const pure virtual

kind()

virtual llvm::StringLiteral clang::syntax::TokenManager::kind ( ) const pure virtual

The documentation for this class was generated from the following file: