[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 13:56:31 PDT 2025


================
@@ -0,0 +1,179 @@
+// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t -- -- -Wno-vla-extension -std=c++20
----------------
vbvictor wrote:

Many thanks, [localspook](https://github.com/localspook), for explanation.
I think we should place it in [Tests Guide](https://clang.llvm.org/extra/clang-tidy/Contributing.html#testing-checks).

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


More information about the cfe-commits mailing list