Skip to content

Commit 6f53984

Browse files
committed
Move note to more appropiate place
1 parent 011624d commit 6f53984

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang-tools-extra/docs/clang-tidy/checks/performance/unnecessary-value-param.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ the following heuristic is employed:
1818
on it, or it is used as const reference or value argument in constructors or
1919
function calls.
2020

21-
Note: This check does not suggest passing parameters by reference in coroutines
22-
because, after a coroutine suspend point, references could be dangling and no
23-
longer valid, so suggested changes may result in hard-to-find bugs and crashes.
24-
2521
Example:
2622

2723
.. code-block:: c++
@@ -60,7 +56,11 @@ Will become:
6056

6157
Because the fix-it needs to change the signature of the function, it may break
6258
builds if the function is used in multiple translation units or some codes
63-
depends on funcion signatures.
59+
depends on function signatures.
60+
61+
Note: This check does not suggest passing parameters by reference in coroutines
62+
because, after a coroutine suspend point, references could be dangling and no
63+
longer valid, so suggested changes may result in hard-to-find bugs and crashes.
6464

6565
Options
6666
-------

0 commit comments

Comments
 (0)