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.
1 parent 7f6239f commit b1eeb05Copy full SHA for b1eeb05
clang-tools-extra/clang-tidy/utils/UseRangesCheck.cpp
@@ -247,6 +247,8 @@ void UseRangesCheck::check(const MatchFinder::MatchResult &Result) {
247
Result.Context->getLangOpts()));
248
} else {
249
assert(ReverseDescriptor && "Couldn't find forward argument");
250
+ if (!ReverseDescriptor)
251
+ return;
252
ArgNode.push_back('R');
253
ArgExpr = Result.Nodes.getNodeAs<Expr>(ArgNode);
254
assert(ArgExpr && "Couldn't find forward or reverse argument");
0 commit comments