[clang-tools-extra] r307701 - Fix clang-tidy diagnostic.cpp test on Windows

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 11 13:22:17 PDT 2017


Author: rnk
Date: Tue Jul 11 13:22:17 2017
New Revision: 307701

URL: http://llvm.org/viewvc/llvm-project?rev=307701&view=rev
Log:
Fix clang-tidy diagnostic.cpp test on Windows

Modified:
    clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp?rev=307701&r1=307700&r2=307701&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp Tue Jul 11 13:22:17 2017
@@ -13,7 +13,7 @@
 // use it after failing to parse commands from the command line:
 //
 // RUN: mkdir -p %T/diagnostics/
-// RUN: echo '[{"directory": "%T/diagnostics/","command": "clang++ -fan-option-from-compilation-database -c %T/diagnostics/input.cpp", "file": "%T/diagnostics/input.cpp"}]' > %T/diagnostics/compile_commands.json
+// RUN: echo '[{"directory": "%/T/diagnostics/","command": "clang++ -fan-option-from-compilation-database -c %/T/diagnostics/input.cpp", "file": "%/T/diagnostics/input.cpp"}]' > %T/diagnostics/compile_commands.json
 // RUN: cat %s > %T/diagnostics/input.cpp
 // RUN: clang-tidy -checks='-*,modernize-use-override' %T/diagnostics/nonexistent.cpp -- 2>&1 | FileCheck -check-prefix=CHECK1 -implicit-check-not='{{warning:|error:}}' %s
 // RUN: clang-tidy -checks='-*,clang-diagnostic-*,google-explicit-constructor' %T/diagnostics/input.cpp -- -fan-unknown-option 2>&1 | FileCheck -check-prefix=CHECK2 -implicit-check-not='{{warning:|error:}}' %s




More information about the cfe-commits mailing list