[clang-tools-extra] [clang-tidy] Improve `bugprone-capturing-this-in-member-variable` check: add support of `bind` functions. (PR #132635)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 03:04:37 PDT 2025


================
@@ -64,16 +64,21 @@ AST_MATCHER(CXXRecordDecl, correctHandleCaptureThisLambda) {
 
 constexpr const char *DefaultFunctionWrapperTypes =
     "::std::function;::std::move_only_function;::boost::function";
+constexpr const char *DefaultBindFunctions = "::std::bind;::boost::bind";
----------------
vbvictor wrote:

Done

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


More information about the cfe-commits mailing list