alexfh added inline comments.

================
Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:11
@@ -10,3 @@
-// RUN: echo '#include "header.h"' > %T/compilation-database-test/b/d.cpp
-// RUN: sed 's|test_dir|%T/compilation-database-test|g' 
%S/Inputs/compilation-database/template.json > %T/compile_commands.json
-// RUN: clang-tidy --checks=-*,modernize-use-nullptr -p %T 
%T/compilation-database-test/b/not-exist -header-filter=.*
----------------
This sed call substitutes placeholders with absolute paths, which is an 
important part of this test. So we can't get rid of the sed call. Furthermore, 
the test verifies that clang-tidy doesn't crash when applying fixes (which it 
used to, IIRC), so I'm not sure this change doesn't make the test less 
informative.

If you need to test correct handling of GCC-style command lines in JSON 
compilation databases on Windows, we can add another test, but this one should 
stay as it is.

================
Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:36
@@ +35,1 @@
+// CHECK-YAML:     ReplacementText: nullptr
\ No newline at end of file

----------------
Please fix "No newline at end of file".


https://reviews.llvm.org/D23533



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to