diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-07-11 12:54:51 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-07-11 12:54:51 +0000 |
commit | b666eee1c8df5c431d8340830205744eb80a696d (patch) | |
tree | 29f060a7359319bd5d1058b7a59a3c4cbf03253f /clang-tools-extra | |
parent | 56ccdbbd292e0066dff318e16fc3d4b3c22a3b2f (diff) | |
download | bcm5719-llvm-b666eee1c8df5c431d8340830205744eb80a696d.tar.gz bcm5719-llvm-b666eee1c8df5c431d8340830205744eb80a696d.zip |
Fixed the test to work with -implicit-check-not.
llvm-svn: 212811
Diffstat (limited to 'clang-tools-extra')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp b/clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp index 98cfd667242..ab3cf1cd49b 100644 --- a/clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp @@ -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) { |