[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
Sat Jan 31 19:36:54 PST 2026


================
@@ -191,7 +191,11 @@ Changes in existing checks
 
 - Improved :doc:`readability-non-const-parameter
   <clang-tidy/checks/readability/non-const-parameter>` check by avoiding false
-  positives on parameters used in dependent expressions.
+  positives on parameters used in template-dependent expressions, including
+  generic lambda parameters. Fixes `#177354
+  <https://github.com/llvm/llvm-project/issues/177354>`_.
+
+
----------------
EugeneZelenko wrote:

```suggestion
```

https://github.com/llvm/llvm-project/pull/179051


More information about the cfe-commits mailing list