Skip to content

Commit 47b6fc1

Browse files
committed
Compare with nullptr
1 parent 60ab6db commit 47b6fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ void LoopConvertCheck::doConversion(
714714
// removed except in case of a `sizeof` operator call.
715715
const DynTypedNodeList GrandParents = Context->getParents(*Paren);
716716
if (GrandParents.size() != 1 ||
717-
!GrandParents[0].get<UnaryExprOrTypeTraitExpr>()) {
717+
GrandParents[0].get<UnaryExprOrTypeTraitExpr>() == nullptr) {
718718
Range = Paren->getSourceRange();
719719
}
720720
} else if (const auto *UOP = Parents[0].get<UnaryOperator>()) {

0 commit comments

Comments
 (0)