Revert 303872/303877 since the patch that caused these issues
authorErich Keane <erich.keane@intel.com>
Thu, 25 May 2017 16:23:00 +0000 (16:23 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 25 May 2017 16:23:00 +0000 (16:23 +0000)
is also being reverted.

llvm-svn: 303881

clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast-allow-conditional-casts.cpp
clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp

index 83b11f7..19c08ec 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: -config='{CheckOptions: \
 // RUN:  [{key: readability-implicit-bool-cast.AllowConditionalIntegerCasts, value: 1}, \
 // RUN:   {key: readability-implicit-bool-cast.AllowConditionalPointerCasts, value: 1}]}' \
-// RUN: -- -std=c++11 -fno-ms-compatibility
+// RUN: -- -std=c++11
 
 template<typename T>
 void functionTaking(T);
index 03e9f72..8284187 100644 (file)
@@ -264,7 +264,7 @@ void implicitCastInNegationExpressions() {
   // CHECK-FIXES: bool boolComingFromNegatedChar = (character == 0);
 
   int* pointer = nullptr;
-  bool boolComingFromNegatedPointer = ! pointer;
+  bool boolComingFromNegatedPointer = not  pointer;
   // CHECK-MESSAGES: :[[@LINE-1]]:43: warning: implicit cast 'int *' -> bool
   // CHECK-FIXES: bool boolComingFromNegatedPointer = pointer == nullptr;
 }