diff options
author | Erich Keane <erich.keane@intel.com> | 2017-05-25 16:07:19 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2017-05-25 16:07:19 +0000 |
commit | 594d0d592dc25e0fd51b6bff83736cb3b00aa9a2 (patch) | |
tree | c37613f9ddde7cef59684092d77622ba47b9ce33 | |
parent | 91a091cc0035d3d6fe279ed3ac1f825556e0b07a (diff) | |
download | bcm5719-llvm-594d0d592dc25e0fd51b6bff83736cb3b00aa9a2.tar.gz bcm5719-llvm-594d0d592dc25e0fd51b6bff83736cb3b00aa9a2.zip |
Clang-tidy doesn't understand -fno-ms-compatibility, so just removing 'not'
llvm-svn: 303877
-rw-r--r-- | clang-tools-extra/test/clang-tidy/readability-implicit-bool-cast.cpp | 4 |
1 files 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 26d16395a7c..03e9f72c0d3 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 <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; } |