[clang-tools-extra] [clang-tidy] Fix false positive for generic lambda parameters in readability-non-const-parameter (PR #179051)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 12 19:59:16 PST 2026
================
@@ -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
More information about the cfe-commits
mailing list