We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nullptr
1 parent 60ab6db commit 47b6fc1Copy full SHA for 47b6fc1
clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
@@ -714,7 +714,7 @@ void LoopConvertCheck::doConversion(
714
// removed except in case of a `sizeof` operator call.
715
const DynTypedNodeList GrandParents = Context->getParents(*Paren);
716
if (GrandParents.size() != 1 ||
717
- !GrandParents[0].get<UnaryExprOrTypeTraitExpr>()) {
+ GrandParents[0].get<UnaryExprOrTypeTraitExpr>() == nullptr) {
718
Range = Paren->getSourceRange();
719
}
720
} else if (const auto *UOP = Parents[0].get<UnaryOperator>()) {
0 commit comments