llvm.org GIT mirror llvm / fc54a35
New method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19765 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2626 ///
2727 bool DiffFiles(const std::string &FileA, const std::string &FileB,
2828 std::string *Error = 0);
29
30 /// DiffFilesWithTolerance - Compare the two files specified, returning 0 if the
31 /// files match, 1 if they are different, and 2 if there is a file error. This
32 /// function differs from DiffFiles in that you can specify an absolete and
33 /// relative FP error that is allowed to exist. If you specify a string to fill
34 /// in for the error option, it will set the string to an error message if an
35 /// error occurs, allowing the caller to distinguish between a failed diff and a
36 /// file system error.
37 ///
38 int DiffFilesWithTolerance(const std::string &FileA, const std::string &FileB,
39 double AbsTol, double RelTol,
40 std::string *Error = 0);
41
2942
3043 /// MoveFileOverIfUpdated - If the file specified by New is different than Old,
3144 /// or if Old does not exist, move the New file over the Old file. Otherwise,