Skip to content

Commit 55efe1f

Browse files
committed
fix doc
1 parent 02473ab commit 55efe1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/capturing-this-in-member-variable.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ pointer points to the new object, which will lead to bugs.
2626
assert(v2.Captured() == &v2); // assertion failed.
2727
}
2828

29-
Possible fixes include refactoring the function object into a class member
30-
method or passing the ``this`` pointer as a parameter.
29+
Possible fixes:
30+
- 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
3134

3235
.. option:: FunctionWrapperTypes
3336

0 commit comments

Comments
 (0)