#include "clang/Tooling/Core/Replacement.h"
#include "clang/Tooling/Syntax/Mutations.h"
#include "clang/Tooling/Syntax/TokenBufferTokenManager.h"
#include "clang/Tooling/Syntax/Tokens.h"
#include "clang/Tooling/Syntax/Tree.h"
#include "llvm/Support/Error.h"
usingnamespaceclang;
namespace {
ProcessTokensFn;
void enumerateTokenSpans(const syntax::Tree *Root,
const syntax::TokenBufferTokenManager &STM,
ProcessTokensFn Callback) { … }
syntax::FileRange rangeOfExpanded(const syntax::TokenBufferTokenManager &STM,
llvm::ArrayRef<syntax::Token> Expanded) { … }
}
tooling::Replacements
syntax::computeReplacements(const TokenBufferTokenManager &TBTM,
const syntax::TranslationUnit &TU) { … }