We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02473ab commit 55efe1fCopy full SHA for 55efe1f
clang-tools-extra/docs/clang-tidy/checks/bugprone/capturing-this-in-member-variable.rst
@@ -26,8 +26,11 @@ pointer points to the new object, which will lead to bugs.
26
assert(v2.Captured() == &v2); // assertion failed.
27
}
28
29
-Possible fixes include refactoring the function object into a class member
30
-method or passing the ``this`` pointer as a parameter.
+Possible fixes:
+ - marking copy and move constructors and assignment operators deleted.
31
+ - using class member method instead of class member variable with function
32
+ object types.
33
+ - passing ``this`` pointer as parameter
34
35
.. option:: FunctionWrapperTypes
36
0 commit comments