[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

Thomas Schenker via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 13:31:59 PDT 2025


schenker wrote:

I got some fixits that do not compile, e.g.:
```
std::erase_if(numbers, [](int n) {
return n % 2 == 0;
});
```
is changed into
```
std::erase_if(numbers, [](int nconstexpr ) {
return n % 2 == 0;
});
```

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


More information about the cfe-commits mailing list