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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 12:49:47 PDT 2025


================
@@ -15,6 +15,7 @@ add_clang_library(clangTidyReadabilityModule STATIC
   ContainerDataPointerCheck.cpp
   ContainerSizeEmptyCheck.cpp
   ConvertMemberFunctionsToStatic.cpp
+  DefaultLambdaCaptureCheck.cpp
----------------
vbvictor wrote:

I may say it should be "avoid-default-lambda-capture" together with
```cpp
AvoidConstParamsInDecls.cpp
AvoidNestedConditionalOperatorCheck.cpp
AvoidReturnWithVoidValueCheck.cpp
AvoidUnconditionalPreprocessorIfCheck.cpp
```


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


More information about the cfe-commits mailing list