15 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_RENAMING_ACTION_H_
16 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_RENAMING_ACTION_H_
18 #include "clang/Tooling/Refactoring.h"
22 class CompilerInstance;
29 const std::vector<std::string> &USRs,
30 tooling::Replacements &Replaces,
bool PrintLocations =
false)
31 : NewName(NewName), PrevName(PrevName), USRs(USRs), Replaces(Replaces),
32 PrintLocations(PrintLocations) {
38 const std::string &NewName, &PrevName;
39 const std::vector<std::string> &USRs;
40 tooling::Replacements &Replaces;
47 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_RENAMING_ACTION_H_
RenamingAction(const std::string &NewName, const std::string &PrevName, const std::vector< std::string > &USRs, tooling::Replacements &Replaces, bool PrintLocations=false)
std::unique_ptr< ASTConsumer > newASTConsumer()