14 #ifndef LLVM_SUPPORT_FILEUTILITIES_H 15 #define LLVM_SUPPORT_FILEUTILITIES_H 34 double AbsTol,
double RelTol,
35 std::string *Error =
nullptr);
49 : DeleteIt(deleteIt) {
96 std::error_code convertToErrorCode()
const override {
This class represents lattice values for constants.
std::error_code remove(const Twine &path, bool IgnoreNonExisting=true)
Remove path.
FileRemover(const Twine &filename, bool deleteIt=true)
void releaseFile()
releaseFile - Take ownership of the file away from the FileRemover so it will not be removed when the...
const atomic_write_error Error
FileRemover - This class is a simple object meant to be stack allocated.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
int DiffFilesWithTolerance(StringRef FileA, StringRef FileB, double AbsTol, double RelTol, std::string *Error=nullptr)
DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match...
void toVector(SmallVectorImpl< char > &Out) const
Append the concatenated string into the given SmallString or SmallVector.
void setFile(const Twine &filename, bool deleteIt=true)
setFile - Give ownership of the file to the FileRemover so it will be removed when the object is dest...
AtomicFileWriteError(atomic_write_error Error)
Base class for user error types.
StringRef filename(StringRef path, Style style=Style::native)
Get filename.
llvm::Error writeFileAtomically(StringRef TempPathModel, StringRef FinalPath, StringRef Buffer)
Creates a unique file with name according to the given TempPathModel, writes content of Buffer to the...
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...