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

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 13:17:50 PDT 2025


================
@@ -93,6 +94,8 @@ class ReadabilityModule : public ClangTidyModule {
         "readability-container-size-empty");
     CheckFactories.registerCheck<ConvertMemberFunctionsToStatic>(
         "readability-convert-member-functions-to-static");
+    CheckFactories.registerCheck<AvoidDefaultLambdaCaptureCheck>(
+        "readability-avoid-default-lambda-capture");
----------------
localspook wrote:

Should be moved up to preserve alphabetical order

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


More information about the cfe-commits mailing list