================
@@ -0,0 +1,43 @@
+.. title:: clang-tidy - readability-default-lambda-capture
+
+readability-default-lambda-capture
+==================================
+
+Warns on default lambda captures (e.g. ``[&](){ ... }``, ``[=](){ ... }``)
+  
+Default captures can lead to subtle bugs including dangling references with
+``[&]``, unnecessary copies with ``[=]``, and make code less maintainable by
+hiding which variables are actually being captured.
+
+Implements Item 31 of Effective Modern C++ by Scott Meyers.
----------------
vbvictor wrote:

Or is it even legal to have a link..? Is it publicly available because all I've 
seen is copied in pdf books

https://github.com/llvm/llvm-project/pull/160150
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to