15 #ifndef LLVM_CLANG_TOOLING_REFACTOR_ATOMICCHANGE_H 16 #define LLVM_CLANG_TOOLING_REFACTOR_ATOMICCHANGE_H 21 #include "llvm/ADT/StringRef.h" 22 #include "llvm/Support/Error.h" 47 : Key(Key), FilePath(FilePath) {}
65 const std::string &
getKey()
const {
return Key; }
74 void setError(llvm::StringRef Error) { this->Error = Error; }
77 bool hasError()
const {
return !Error.empty(); }
80 const std::string &
getError()
const {
return Error; }
86 llvm::StringRef ReplacementText);
92 unsigned Length, llvm::StringRef
Text);
103 llvm::StringRef Text,
bool InsertAfter =
true);
117 return InsertedHeaders;
121 return RemovedHeaders;
127 AtomicChange(std::string Key, std::string FilePath, std::string Error,
128 std::vector<std::string> InsertedHeaders,
129 std::vector<std::string> RemovedHeaders,
134 std::string FilePath;
136 std::vector<std::string> InsertedHeaders;
137 std::vector<std::string> RemovedHeaders;
179 #endif // LLVM_CLANG_TOOLING_REFACTOR_ATOMICCHANGE_H
Defines the SourceManager interface.
AvailabilityChange Changes[NumAvailabilitySlots]
Represents a character-granular source range.
Encodes a location in the source.
Dataflow Directional Tag Classes.
This class handles loading and caching of source files into memory.