clang 19.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::syntax::TokenBufferTokenManager Class Reference

A TokenBuffer-powered token manager. More...

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

Inheritance diagram for clang::syntax::TokenBufferTokenManager:
Inheritance graph

Public Member Functions

 TokenBufferTokenManager (const TokenBuffer &Tokens, const LangOptions &LangOpts, SourceManager &SourceMgr)
llvm::StringLiteral kind () const override
 Describes what the exact class kind of the TokenManager is.
llvm::StringRef getText (Key I) const override
const syntax::TokengetToken (Key I) const
SourceManagersourceManager ()
const SourceManagersourceManager () const
const TokenBuffertokenBuffer () const
- Public Member Functions inherited from clang::syntax::TokenManager
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

Static Public Member Functions

static bool classof (const TokenManager *N)


class FactoryImpl

Additional Inherited Members

- Public Types inherited from clang::syntax::TokenManager
using Key = uintptr_t
 A key to identify a specific token.

Detailed Description

A TokenBuffer-powered token manager.

It tracks the underlying token buffers, source manager, etc.

Definition at line 20 of file TokenBufferTokenManager.h.

Constructor & Destructor Documentation

◆ TokenBufferTokenManager()

clang::syntax::TokenBufferTokenManager::TokenBufferTokenManager ( const TokenBuffer Tokens,
const LangOptions LangOpts,
SourceManager SourceMgr 

Definition at line 22 of file TokenBufferTokenManager.h.

Member Function Documentation

◆ classof()

static bool clang::syntax::TokenBufferTokenManager::classof ( const TokenManager N)

Definition at line 26 of file TokenBufferTokenManager.h.

References clang::syntax::TokenManager::kind().

◆ getText()

llvm::StringRef clang::syntax::TokenBufferTokenManager::getText ( Key  I) const

◆ getToken()

const syntax::Token * clang::syntax::TokenBufferTokenManager::getToken ( Key  I) const

Definition at line 40 of file TokenBufferTokenManager.h.

Referenced by clang::syntax::deepCopyExpandingMacros(), and getText().

◆ kind()

llvm::StringLiteral clang::syntax::TokenBufferTokenManager::kind ( ) const

Describes what the exact class kind of the TokenManager is.

Implements clang::syntax::TokenManager.

Definition at line 27 of file TokenBufferTokenManager.h.

◆ sourceManager() [1/2]

SourceManager & clang::syntax::TokenBufferTokenManager::sourceManager ( )

◆ sourceManager() [2/2]

const SourceManager & clang::syntax::TokenBufferTokenManager::sourceManager ( ) const

Definition at line 44 of file TokenBufferTokenManager.h.

◆ tokenBuffer()

const TokenBuffer & clang::syntax::TokenBufferTokenManager::tokenBuffer ( ) const

Friends And Related Function Documentation

◆ FactoryImpl

friend class FactoryImpl

Definition at line 56 of file TokenBufferTokenManager.h.

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