[clang-tools-extra] [clang-tidy] Add new check bugprone-capture-this-by-field (PR #130297)

Denis Mikhailov via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 13 15:18:06 PDT 2025


================
@@ -0,0 +1,144 @@
+// RUN: %check_clang_tidy -std=c++11-or-later %s bugprone-capturing-this-by-field %t -- -config="{CheckOptions: {bugprone-capturing-this-by-field.FunctionWrapperTypes: '::std::function;::Fn'}}" --
----------------
denzor200 wrote:

Created issues about bind and Boost's lambdas:
https://github.com/llvm/llvm-project/issues/131220
https://github.com/llvm/llvm-project/issues/131231

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


More information about the cfe-commits mailing list