14 #ifndef LLVM_CLANG_TOOLING_REFACTOR_RENAME_RENAMING_ACTION_H 15 #define LLVM_CLANG_TOOLING_REFACTOR_RENAME_RENAMING_ACTION_H 22 #include "llvm/Support/Error.h" 26 class CompilerInstance;
33 const std::vector<std::string> &PrevNames,
34 const std::vector<std::vector<std::string>> &USRList,
35 std::map<std::string, tooling::Replacements> &FileToReplaces,
36 bool PrintLocations =
false)
37 : NewNames(NewNames), PrevNames(PrevNames), USRList(USRList),
38 FileToReplaces(FileToReplaces), PrintLocations(PrintLocations) {}
43 const std::vector<std::string> &NewNames, &PrevNames;
44 const std::vector<std::vector<std::string>> &USRList;
45 std::map<std::string, tooling::Replacements> &FileToReplaces;
61 : ND(ND), NewName(std::move(NewName)) {}
73 std::string OldQualifiedName,
74 std::string NewQualifiedName);
80 std::string NewQualifiedName)
81 : ND(ND), NewQualifiedName(std::move(NewQualifiedName)) {}
89 std::string NewQualifiedName;
102 const std::vector<std::string> &NewNames,
103 const std::vector<std::vector<std::string>> &USRList,
104 std::map<std::string, tooling::Replacements> &FileToReplaces)
105 : NewNames(NewNames), USRList(USRList), FileToReplaces(FileToReplaces) {}
111 const std::vector<std::string> &NewNames;
114 const std::vector<std::vector<std::string>> &USRList;
117 std::map<std::string, tooling::Replacements> &FileToReplaces;
123 #endif // LLVM_CLANG_TOOLING_REFACTOR_RENAME_RENAMING_ACTION_H
The refactoring rule context stores all of the inputs that might be needed by a refactoring action ru...
Dataflow Directional Tag Classes.
A trivial tuple used to represent a source range.
This represents a decl that may have a name.
This class handles loading and caching of source files into memory.