Revert 303872/303877 since the patch that caused these issues

is also being reverted.

llvm-svn: 303881
This commit is contained in:
Erich Keane 2017-05-25 16:23:00 +00:00
parent 8d765ef92d
commit ea0f630055
2 changed files with 2 additions and 2 deletions

View 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);

View 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;
}