[clang-tools-extra] r212811 - Fixed the test to work with -implicit-check-not.

Alexander Kornienko alexfh at google.com
Fri Jul 11 05:54:51 PDT 2014


Author: alexfh
Date: Fri Jul 11 07:54:51 2014
New Revision: 212811

URL: http://llvm.org/viewvc/llvm-project?rev=212811&view=rev
Log:
Fixed the test to work with -implicit-check-not.

Modified:
    clang-tools-extra/trunk/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp?rev=212811&r1=212810&r2=212811&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp Fri Jul 11 07:54:51 2014
@@ -16,12 +16,12 @@ void t(T b) {
 void foo() {
   bool *b = SomeFunction();
   if (b) {
-// CHECK-MESSAGES: dubious check of 'bool *' against 'nullptr'
+// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: dubious check of 'bool *' against 'nullptr'
 // CHECK-FIXES: if (*b) {
   }
 
   if (F() && b) {
-// CHECK-MESSAGES: dubious check of 'bool *' against 'nullptr'
+// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: dubious check of 'bool *' against 'nullptr'
 // CHECK-FIXES: if (F() && *b) {
   }
 
@@ -33,14 +33,12 @@ void foo() {
 #define TESTMACRO if (b || F())
 
   TESTMACRO {
-// CHECK-MESSAGES: dubious check of 'bool *' against 'nullptr'
+// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: dubious check of 'bool *' against 'nullptr'
 // Can't fix this.
 // CHECK-FIXES: #define TESTMACRO if (b || F())
 // CHECK-FIXES: TESTMACRO {
   }
 
-// CHECK-MESSAGES-NOT: warning:
-
   t(b);
 
   if (!b) {





More information about the cfe-commits mailing list