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> &PrevNames,
30 const std::vector<std::vector<std::string>> &USRList,
31 std::map<std::string, tooling::Replacements> &FileToReplaces,
32 bool PrintLocations =
false)
33 : NewNames(NewNames), PrevNames(PrevNames), USRList(USRList),
34 FileToReplaces(FileToReplaces), PrintLocations(PrintLocations) {}
39 const std::vector<std::string> &NewNames, &PrevNames;
40 const std::vector<std::vector<std::string>> &USRList;
41 std::map<std::string, tooling::Replacements> &FileToReplaces;
48 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_RENAMING_ACTION_H
std::unique_ptr< ASTConsumer > newASTConsumer()
RenamingAction(const std::vector< std::string > &NewNames, const std::vector< std::string > &PrevNames, const std::vector< std::vector< std::string >> &USRList, std::map< std::string, tooling::Replacements > &FileToReplaces, bool PrintLocations=false)