[all-commits] [llvm/llvm-project] 5548b2: [clang-tidy] Fix false positive for generic lambda...

Aditya Singh via All-commits all-commits at lists.llvm.org
Sat Feb 14 20:39:51 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5548b24d18ad9e856bcb354a17b52c15fa37bf73
      https://github.com/llvm/llvm-project/commit/5548b24d18ad9e856bcb354a17b52c15fa37bf73
  Author: Aditya Singh <aditya26189 at kgpian.iitkgp.ac.in>
  Date:   2026-02-15 (Sun, 15 Feb 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.cpp

  Log Message:
  -----------
  [clang-tidy] Fix false positive for generic lambda parameters in readability-non-const-parameter (#179051)

Fixes #177354

### Summary
The `readability-non-const-parameter` check produces false positives on
generic lambda parameters, not fully resolved by #177345.

### Problem
Generic lambdas with explicit template parameters create dependent
contexts that cannot be analyzed at parse time:

```cpp
auto lambda = []<typename T>(int *p) {
  T x(*p);   // No longer warns
};
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list