Open Quuxplusone opened 7 years ago
Bugzilla Link | PR31894 |
Status | NEW |
Importance | P enhancement |
Reported by | Alexander Lanin (llvm@alex.lanin.de) |
Reported on | 2017-02-07 15:03:25 -0800 |
Last modified on | 2017-02-09 05:04:46 -0800 |
Version | unspecified |
Hardware | PC Windows NT |
CC | alexfh@google.com, djasper@google.com, klimek@google.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
I suppose, you stumbled upon this on Windows or OSX?
The script needs GNU diff (a part of diffutils package, should be available via gnuwin32 as well). Specifically, its unified diff format (https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html). But that's just a convenience feature to help diagnose test failures. Any other text-based diff command could be used instead.
However, a few lit tests in clang-tools-extra use GNU diff as a part of their normal workflow (I found clang-tidy/clang-tidy-diff.cpp, clang-tidy/misc-unused-parameters.cpp, clang-tidy/clang-tidy-diff.cpp, clang-apply-replacements/crlf.cpp, test/include-fixer/merge.test), so it might make sense to update the documentation instead of adding comments to each of these tests.