From 594d0d592dc25e0fd51b6bff83736cb3b00aa9a2 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Thu, 25 May 2017 16:07:19 +0000 Subject: [PATCH] Clang-tidy doesn't understand -fno-ms-compatibility, so just removing 'not' llvm-svn: 303877 --- clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp b/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp index 26d1639..03e9f72 100644 --- a/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp +++ b/clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp @@ -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 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; } -- 2.7.4