ΒΆint DiffFilesWithTolerance(
llvm::StringRef FileA,
llvm::StringRef FileB,
double AbsTol,
double RelTol,
std::string* Error = nullptr)
int DiffFilesWithTolerance(
llvm::StringRef FileA,
llvm::StringRef FileB,
double AbsTol,
double RelTol,
std::string* Error = nullptr)
Description
DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match, 1 if they are different, and 2 if there is a file error. This function allows you to specify an absolute and relative FP error that is allowed to exist. If you specify a string to fill in for the error option, it will set the string to an error message if an error occurs, or if the files are different.
Declared at: llvm/include/llvm/Support/FileUtilities.h:32
Parameters
- llvm::StringRef FileA
- llvm::StringRef FileB
- double AbsTol
- double RelTol
- std::string* Error = nullptr