[clang-tools-extra] r267687 - Don't search compilation database in explain-check test.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 03:22:31 PDT 2016


Author: hokein
Date: Wed Apr 27 05:22:31 2016
New Revision: 267687

URL: http://llvm.org/viewvc/llvm-project?rev=267687&view=rev
Log:
Don't search compilation database in explain-check test.

Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D19583

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

Modified: clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp?rev=267687&r1=267686&r2=267687&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp Wed Apr 27 05:22:31 2016
@@ -4,7 +4,7 @@
 // RUN: clang-tidy -checks=modernize-use-nullptr -config="{Checks: '-*,-modernize-use-nullptr'}" %S/Inputs/explain-config/a.cc -explain-config | FileCheck --check-prefix=CHECK-MESSAGE4 %s
 // RUN: clang-tidy -checks=modernize-use-nullptr -config="{Checks: '-*,modernize-*'}" -explain-config | FileCheck --check-prefix=CHECK-MESSAGE5 %s
 // RUN: clang-tidy -config="{Checks: 'modernize-use-nullptr'}" -explain-config | FileCheck --check-prefix=CHECK-MESSAGE6 %s
-// RUN: clang-tidy -explain-config %S/Inputs/explain-config/a.cc | grep "'modernize-use-nullptr' is enabled in the %S/Inputs/explain-config/.clang-tidy."
+// RUN: clang-tidy -explain-config %S/Inputs/explain-config/a.cc -- | grep "'modernize-use-nullptr' is enabled in the %S/Inputs/explain-config/.clang-tidy."
 
 // CHECK-MESSAGE1: 'modernize-use-nullptr' is enabled in the command-line option '-checks'.
 // CHECK-MESSAGE2: 'modernize-use-nullptr' is enabled in the command-line option '-config'.




More information about the cfe-commits mailing list