[clang-tools-extra] r262618 - [clang-tidy] Improve the robustness of a test.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 05:43:24 PST 2016
Author: xazax
Date: Thu Mar 3 07:43:23 2016
New Revision: 262618
URL: http://llvm.org/viewvc/llvm-project?rev=262618&view=rev
Log:
[clang-tidy] Improve the robustness of a test.
Modified:
clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp?rev=262618&r1=262617&r2=262618&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp Thu Mar 3 07:43:23 2016
@@ -1,5 +1,4 @@
-// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 > %t
-// RUN: FileCheck --input-file=%t %s
+// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 | FileCheck %s
// Note: This test verifies that, the checker does not emit any warning for
// files that do not compile.
@@ -8,6 +7,6 @@ bool g();
void f() {
if (g());
- // CHECK-NOT: :[[@LINE-1]]:11: warning: potentially unintended semicolon [misc-suspicious-semicolon]
+ // CHECK-NOT: [misc-suspicious-semicolon]
int a
}
More information about the cfe-commits
mailing list