forked from OSchip/llvm-project
Revert 303872/303877 since the patch that caused these issues
is also being reverted. llvm-svn: 303881
This commit is contained in:
parent
8d765ef92d
commit
ea0f630055
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue