================ @@ -164,6 +165,24 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) { static void removeFunctionArgs(DiagnosticBuilder &Diag, const CallExpr &Call, ArrayRef<unsigned> Indexes, const ASTContext &Ctx) { + const auto GetCommaLoc = [&](SourceLocation BeginLoc, ---------------- vbvictor wrote:
Nit suggestion: as far as I can see, we only need `Ctx` here, so no point in capturing all variables. ```suggestion const auto GetCommaLoc = [&Ctx](SourceLocation BeginLoc, ``` https://github.com/llvm/llvm-project/pull/118568 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits