15 #ifndef LLVM_CLANG_TOOLING_REFACTOR_RENAME_RENAMING_ACTION_H 16 #define LLVM_CLANG_TOOLING_REFACTOR_RENAME_RENAMING_ACTION_H 23 #include "llvm/Support/Error.h" 27 class CompilerInstance;
34 const std::vector<std::string> &PrevNames,
35 const std::vector<std::vector<std::string>> &USRList,
36 std::map<std::string, tooling::Replacements> &FileToReplaces,
37 bool PrintLocations =
false)
38 : NewNames(NewNames), PrevNames(PrevNames), USRList(USRList),
39 FileToReplaces(FileToReplaces), PrintLocations(PrintLocations) {}
44 const std::vector<std::string> &NewNames, &PrevNames;
45 const std::vector<std::vector<std::string>> &USRList;
46 std::map<std::string, tooling::Replacements> &FileToReplaces;
60 : ND(ND), NewName(std::move(NewName)) {}
72 std::string OldQualifiedName,
73 std::string NewQualifiedName);
79 std::string NewQualifiedName)
80 : ND(ND), NewQualifiedName(std::move(NewQualifiedName)) {}
88 std::string NewQualifiedName;
101 const std::vector<std::string> &NewNames,
102 const std::vector<std::vector<std::string>> &USRList,
103 std::map<std::string, tooling::Replacements> &FileToReplaces)
104 : NewNames(NewNames), USRList(USRList), FileToReplaces(FileToReplaces) {}
110 const std::vector<std::string> &NewNames;
113 const std::vector<std::vector<std::string>> &USRList;
116 std::map<std::string, tooling::Replacements> &FileToReplaces;
122 #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.