clang 20.0.0git
|
A TokenBuffer-powered token manager. More...
#include "clang/Tooling/Syntax/TokenBufferTokenManager.h"
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::Token * | getToken (Key I) const |
SourceManager & | sourceManager () |
const SourceManager & | sourceManager () const |
const TokenBuffer & | tokenBuffer () 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) |
Friends | |
class | FactoryImpl |
Additional Inherited Members | |
Public Types inherited from clang::syntax::TokenManager | |
using | Key = uintptr_t |
A key to identify a specific token. | |
A TokenBuffer-powered token manager.
It tracks the underlying token buffers, source manager, etc.
Definition at line 20 of file TokenBufferTokenManager.h.
|
inline |
Definition at line 22 of file TokenBufferTokenManager.h.
|
inlinestatic |
Definition at line 26 of file TokenBufferTokenManager.h.
References clang::syntax::TokenManager::kind().
|
inlineoverridevirtual |
Implements clang::syntax::TokenManager.
Definition at line 29 of file TokenBufferTokenManager.h.
References getToken(), clang::syntax::Token::kind(), and clang::syntax::Token::text().
Referenced by clang::syntax::deepCopyExpandingMacros().
|
inline |
Definition at line 40 of file TokenBufferTokenManager.h.
Referenced by clang::syntax::deepCopyExpandingMacros(), and getText().
|
inlineoverridevirtual |
Describes what the exact class kind of the TokenManager is.
Implements clang::syntax::TokenManager.
Definition at line 27 of file TokenBufferTokenManager.h.
|
inline |
Definition at line 43 of file TokenBufferTokenManager.h.
Referenced by clang::syntax::computeReplacements(), clang::syntax::TreeBuilder::getRange(), and clang::syntax::TreeBuilder::sourceManager().
|
inline |
Definition at line 44 of file TokenBufferTokenManager.h.
|
inline |
Definition at line 45 of file TokenBufferTokenManager.h.
Referenced by clang::syntax::computeReplacements(), clang::syntax::TreeBuilder::finalize(), clang::syntax::TreeBuilder::foldList(), clang::syntax::TreeBuilder::foldNode(), and clang::syntax::TreeBuilder::TreeBuilder().
|
friend |
Definition at line 56 of file TokenBufferTokenManager.h.