llvm.org GIT mirror llvm / f61c001
Remove two dead methods and improve the comments for DiffFilesWithTolerance. Also, make DiffFilesWithTolerance take sys::Path objects instead of std::strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19770 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 10 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
1818
1919 namespace llvm {
2020
21 /// DiffFiles - Compare the two files specified, returning true if they are
22 /// different or if there is a file error. If you specify a string to fill in
23 /// for the error option, it will set the string to an error message if an error
24 /// occurs, allowing the caller to distinguish between a failed diff and a file
25 /// system error.
26 ///
27 bool DiffFiles(const std::string &FileA, const std::string &FileB,
28 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);
21 /// DiffFilesWithTolerance - Compare the two files specified, returning 0 if
22 /// the files match, 1 if they are different, and 2 if there is a file error.
23 /// This function allows you to specify an absolete and relative FP error that
24 /// is allowed to exist. If you specify a string to fill in for the error
25 /// option, it will set the string to an error message if an error occurs, or
26 /// if the files are different.
27 ///
28 int DiffFilesWithTolerance(const sys::Path &FileA, const sys::Path &FileB,
29 double AbsTol, double RelTol,
30 std::string *Error = 0);
4131
4232
43 /// MoveFileOverIfUpdated - If the file specified by New is different than Old,
44 /// or if Old does not exist, move the New file over the Old file. Otherwise,
45 /// remove the New file.
46 ///
47 void MoveFileOverIfUpdated(const std::string &New, const std::string &Old);
48
4933 /// FileRemover - This class is a simple object meant to be stack allocated.
5034 /// If an exception is thrown from a region, the object removes the filename
5135 /// specified (if deleteIt is true).