14#ifndef LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H
15#define LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H
33 std::list<Token> TokenList;
36 using TokenRefTy = std::list<Token>::iterator;
42 std::map<SourceLocation, TokenRefTy> TokenAtLoc;
45 std::unique_ptr<ScratchBuffer> ScratchBuf;
64 assert(I !=
token_end() &&
"Cannot insert after token_end()!");
75 TokenRefTy AddToken(
const Token &
T, TokenRefTy Where);
Defines the clang::SourceLocation class and associated facilities.
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
This class handles loading and caching of source files into memory.
TokenRewriter(const TokenRewriter &)=delete
TokenRewriter & operator=(const TokenRewriter &)=delete
token_iterator AddTokenBefore(token_iterator I, const char *Val)
token_iterator AddTokenAfter(token_iterator I, const char *Val)
token_iterator token_begin() const
token_iterator token_end() const
std::list< Token >::const_iterator token_iterator
Token - This structure provides full information about a lexed token.
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T