15 #ifndef LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H
16 #define LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H
31 std::list<Token> TokenList;
40 std::map<SourceLocation, TokenRefTy> TokenAtLoc;
44 std::unique_ptr<ScratchBuffer> ScratchBuf;
61 assert(I !=
token_end() &&
"Cannot insert after token_end()!");
72 TokenRefTy AddToken(
const Token &T, TokenRefTy Where);
Token - This structure provides full information about a lexed token.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
detail::InMemoryDirectory::const_iterator I
token_iterator AddTokenAfter(token_iterator I, const char *Val)
std::list< Token >::const_iterator token_iterator
token_iterator token_end() const
token_iterator AddTokenBefore(token_iterator I, const char *Val)
const TemplateArgument * iterator
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
token_iterator token_begin() const
Defines the clang::SourceLocation class and associated facilities.
This class handles loading and caching of source files into memory.