15 #ifndef LLVM_SUPPORT_FILEUTILITIES_H 16 #define LLVM_SUPPORT_FILEUTILITIES_H 32 double AbsTol,
double RelTol,
33 std::string *Error =
nullptr);
47 : DeleteIt(deleteIt) {
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...
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...
StringRef filename(StringRef path, Style style=Style::native)
Get filename.