14#ifndef LLVM_CLANG_TOOLING_REFACTORING_RENAME_RENAMINGACTION_H
15#define LLVM_CLANG_TOOLING_REFACTORING_RENAME_RENAMINGACTION_H
22#include "llvm/Support/Error.h"
32 const std::vector<std::string> &PrevNames,
33 const std::vector<std::vector<std::string>> &USRList,
34 std::map<std::string, tooling::Replacements> &FileToReplaces,
35 bool PrintLocations =
false)
36 : NewNames(NewNames), PrevNames(PrevNames), USRList(USRList),
37 FileToReplaces(FileToReplaces), PrintLocations(PrintLocations) {}
42 const std::vector<std::string> &NewNames, &PrevNames;
43 const std::vector<std::vector<std::string>> &USRList;
44 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;
This represents a decl that may have a name.
This class handles loading and caching of source files into memory.
A trivial tuple used to represent a source range.
The refactoring rule context stores all of the inputs that might be needed by a refactoring action ru...
The JSON file list parser is used to communicate input to InstallAPI.