clang 19.0.0git
Public Types | Public Member Functions | List of all members
clang::syntax::TokenManager Class Referenceabstract

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

#include "clang/Tooling/Syntax/TokenManager.h"

Inheritance diagram for clang::syntax::TokenManager:
Inheritance graph
[legend]

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
 

Detailed Description

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

Definition at line 29 of file TokenManager.h.

Member Typedef Documentation

◆ 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.

Constructor & Destructor Documentation

◆ ~TokenManager()

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

Member Function Documentation

◆ getText()

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

◆ kind()

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

Describes what the exact class kind of the TokenManager is.

Implemented in clang::syntax::TokenBufferTokenManager.

Referenced by clang::syntax::TokenBufferTokenManager::classof().


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