Author: erichkeane Date: Thu May 25 11:07:19 2017 New Revision: 303877 URL: http://llvm.org/viewvc/llvm-project?rev=303877&view=rev Log: Clang-tidy doesn't understand -fno-ms-compatibility, so just removing 'not'
Modified: clang-tools-extra/trunk/test/clang-tidy/readability-implicit-bool-cast.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/readability-implicit-bool-cast.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/readability-implicit-bool-cast.cpp?rev=303877&r1=303876&r2=303877&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/readability-implicit-bool-cast.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/readability-implicit-bool-cast.cpp Thu May 25 11:07:19 2017 @@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy %s -fno-ms-compatibility readability-implicit-bool-cast %t +// RUN: %check_clang_tidy %s readability-implicit-bool-cast %t // We need NULL macro, but some buildbots don't like including <cstddef> header // This is a portable way of getting it to work @@ -264,7 +264,7 @@ void implicitCastInNegationExpressions() // CHECK-FIXES: bool boolComingFromNegatedChar = (character == 0); int* pointer = nullptr; - bool boolComingFromNegatedPointer = not pointer; + bool boolComingFromNegatedPointer = ! pointer; // CHECK-MESSAGES: :[[@LINE-1]]:43: warning: implicit cast 'int *' -> bool // CHECK-FIXES: bool boolComingFromNegatedPointer = pointer == nullptr; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits