Go to the documentation of this file.
14 #ifndef LLVM_CLANG_TOOLING_REFACTORING_ATOMICCHANGE_H
15 #define LLVM_CLANG_TOOLING_REFACTORING_ATOMICCHANGE_H
20 #include "llvm/ADT/Any.h"
21 #include "llvm/ADT/StringRef.h"
22 #include "llvm/Support/Error.h"
50 : Key(Key), FilePath(FilePath) {}
80 bool hasError()
const {
return !Error.empty(); }
89 llvm::StringRef ReplacementText);
95 unsigned Length, llvm::StringRef
Text);
106 llvm::StringRef
Text,
bool InsertAfter =
true);
122 return InsertedHeaders;
126 return RemovedHeaders;
135 std::vector<std::string> InsertedHeaders,
136 std::vector<std::string> RemovedHeaders,
143 std::vector<std::string> InsertedHeaders;
144 std::vector<std::string> RemovedHeaders;
192 #endif // LLVM_CLANG_TOOLING_REFACTORING_ATOMICCHANGE_H
Encodes a location in the source.
This class handles loading and caching of source files into memory.
Represents a character-granular source range.