================
@@ -95,18 +95,20 @@ void NonConstParameterCheck::check(const
MatchFinder::MatchResult &Result) {
}
}
} else if (const auto *CE = dyn_cast<CXXUnresolvedConstructExpr>(S)) {
- for (const auto *Arg : CE->arguments())
- markCanNotBeConst(Arg->IgnoreParenCasts(), true);
+ markCanNotBeConst(CE, true);
----------------
zeyi2 wrote:
Nice catch, thanks!
https://github.com/llvm/llvm-project/pull/179051
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits