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

JJ Marr via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 25 08:29:23 PDT 2025


================
@@ -203,6 +203,11 @@ New checks
   Finds virtual function overrides with different visibility than the function
   in the base class.
 
+- New :doc:`readability-avoid-default-lambda-capture
+  <clang-tidy/checks/readability/avoid-default-lambda-capture>` check.
+
+  Warns on default lambda captures (e.g. ``[&](){ ... }``, ``[=](){ ... }``)
----------------
jjmarr-amd wrote:

period at the end.

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


More information about the cfe-commits mailing list