[clang-tools-extra] [clang-tidy] Add modernize-use-static-lambda check (PR #196893)
Daniil Dudkin via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 14:47:16 PDT 2026
unterumarmung wrote:
TBH I'm not convinced that it should be in the `performance` category.
1) GCC trunc: https://godbolt.org/z/4GP9cP3nK - asm is identical
2) GCC 13.2: https://quick-bench.com/q/zB9jNpBSe1gwac6SOJuDljMsxMY - the CPU time is on par, the regular lambda example even beats the static one
https://github.com/llvm/llvm-project/pull/196893
More information about the cfe-commits
mailing list