clang 20.0.0git
|
#include "clang/Rewrite/Core/TokenRewriter.h"
Public Types | |
using | token_iterator = std::list< Token >::const_iterator |
Public Member Functions | |
TokenRewriter (FileID FID, SourceManager &SM, const LangOptions &LO) | |
TokenRewriter - This creates a TokenRewriter for the file with the specified FileID. | |
TokenRewriter (const TokenRewriter &)=delete | |
TokenRewriter & | operator= (const TokenRewriter &)=delete |
~TokenRewriter () | |
token_iterator | token_begin () const |
token_iterator | token_end () const |
token_iterator | AddTokenBefore (token_iterator I, const char *Val) |
token_iterator | AddTokenAfter (token_iterator I, const char *Val) |
Definition at line 30 of file TokenRewriter.h.
using clang::TokenRewriter::token_iterator = std::list<Token>::const_iterator |
Definition at line 56 of file TokenRewriter.h.
TokenRewriter::TokenRewriter | ( | FileID | FID, |
SourceManager & | SM, | ||
const LangOptions & | LO | ||
) |
TokenRewriter - This creates a TokenRewriter for the file with the specified FileID.
Definition at line 26 of file TokenRewriter.cpp.
References clang::Token::isNot(), clang::Lexer::LexFromRawLexer(), clang::Lexer::SetKeepWhitespaceMode(), and SM.
|
delete |
|
default |
|
inline |
Definition at line 63 of file TokenRewriter.h.
References AddTokenBefore(), and token_end().
TokenRewriter::token_iterator TokenRewriter::AddTokenBefore | ( | token_iterator | I, |
const char * | Val | ||
) |
Definition at line 83 of file TokenRewriter.cpp.
References clang::Token::setKind(), clang::Token::setLength(), clang::Token::setLocation(), and clang::Token::startToken().
Referenced by AddTokenAfter().
|
delete |
|
inline |
Definition at line 58 of file TokenRewriter.h.
|
inline |
Definition at line 59 of file TokenRewriter.h.
Referenced by AddTokenAfter().