[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 07:53:42 PST 2026
https://github.com/zeyi2 commented:
Hi there,
A small process note: The PR description seems to be AI-generated? (apology if not) If AI is used, please disclose it in the PR description :)
We have an AI policy here: https://llvm.org/docs/AIToolPolicy.html
---
I previously suggested not skipping generic lambdas entirely because it causes false negatives. I notice that you still keep the skipping approach in the current fix.
IMO skipping generic lambda is more of a temp workaround.
Here is a small patch that contains some of the logic, you can use it as a reference for your implementation:
[draft.patch](https://github.com/user-attachments/files/25267050/draft.patch)
https://github.com/llvm/llvm-project/pull/179051
More information about the cfe-commits
mailing list