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) {}
68 const std::string &
getKey()
const {
return Key; }
77 void setError(llvm::StringRef Error) { this->Error = std::string(Error); }
80 bool hasError()
const {
return !Error.empty(); }
83 const std::string &
getError()
const {
return Error; }
89 llvm::StringRef ReplacementText);
95 unsigned Length, llvm::StringRef
Text);
106 llvm::StringRef
Text,
bool InsertAfter =
true);
122 return InsertedHeaders;
126 return RemovedHeaders;
134 AtomicChange(std::string Key, std::string FilePath, std::string Error,
135 std::vector<std::string> InsertedHeaders,
136 std::vector<std::string> RemovedHeaders,
141 std::string FilePath;
143 std::vector<std::string> InsertedHeaders;
144 std::vector<std::string> RemovedHeaders;
Defines the SourceManager interface.
Represents a character-granular source range.
Encodes a location in the source.
This class handles loading and caching of source files into memory.
The JSON file list parser is used to communicate input to InstallAPI.
@ Other
Other implicit parameter.