Author: chapuni
Date: Sat May 24 03:42:12 2014
New Revision: 209569
URL: http://llvm.org/viewvc/llvm-project?rev=209569&view=rev
Log:
clang-tools-extra/test/clang-tidy/line-filter.cpp: Tweak line-filter.
On win32, %s is expanded to X:\path\to\test\line-filter.cpp. It was
incompatible to yaml.
Although "%/s" could be available in Lit,
ClangTidyDiagnosticConsumer::passesLineFilter() is unaware of comparision
between '/' and '\\'.
Modified:
clang-tools-extra/trunk/test/clang-tidy/line-filter.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/line-filter.cpp
URL:
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/line-filter.cpp?rev=209569&r1=209568&r2=209569&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/line-filter.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/line-filter.cpp Sat May 24 03:42:12
2014
@@ -1,4 +1,4 @@
-// RUN: clang-tidy -checks='-*,google-explicit-constructor'
-line-filter='[{"name":"%s","lines":[[18,18],[22,22]]},{"name":"header1.h","lines":[[1,2]]},{"name":"header2.h"},{"name":"header3.h"}]'
-header-filter='header[12]\.h$' %s -- -I %S/Inputs/line-filter 2>&1 |
FileCheck %s
+// RUN: clang-tidy -checks='-*,google-explicit-constructor'
-line-filter='[{"name":"line-filter.cpp","lines":[[18,18],[22,22]]},{"name":"header1.h","lines":[[1,2]]},{"name":"header2.h"},{"name":"header3.h"}]'
-header-filter='header[12]\.h$' %s -- -I %S/Inputs/line-filter 2>&1 |
FileCheck %s
#include "header1.h"
// CHECK-NOT: header1.h:{{.*}} warning
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits