================
@@ -114,8 +114,9 @@ void ReturnBracedInitListCheck::check(const
MatchFinder::MatchResult &Result) {
return;
// Make sure that the ctor arguments match the declaration.
- for (unsigned I = 0, NumParams = MatchedConstructExpr->getNumArgs();
- I < NumParams; ++I) {
+ const unsigned NumParams =
+ MatchedConstructExpr->getConstructor()->getNumParams();
----------------
zeyi2 wrote:
Another getArgs crash for Clang-tidy🥳
https://github.com/llvm/llvm-project/pull/243703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits