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

JJ Marr via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 13:17:24 PDT 2025


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

But the init-capture test case is only valid for C++20-or-later, which is why I added that.

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


More information about the cfe-commits mailing list