15 #ifndef LLVM_SUPPORT_FILEUTILITIES_H
16 #define LLVM_SUPPORT_FILEUTILITIES_H
32 double AbsTol,
double RelTol,
33 std::string *
Error = 0);
47 : DeleteIt(deleteIt) {
void toVector(SmallVectorImpl< char > &Out) const
FileRemover(const Twine &filename, bool deleteIt=true)
void setFile(const Twine &filename, bool deleteIt=true)
StringRef str() const
Explicit conversion to StringRef.
error_code remove(const Twine &path, bool &existed)
Remove path. Equivalent to POSIX remove().
int DiffFilesWithTolerance(StringRef FileA, StringRef FileB, double AbsTol, double RelTol, std::string *Error=0)
const StringRef filename(StringRef path)
Get filename.