summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst')
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
index 2d4553e705c..858fbe78fdf 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
@@ -3,15 +3,14 @@
misc-uniqueptr-reset-release
============================
-
Find and replace ``unique_ptr::reset(release())`` with ``std::move()``.
Example:
-.. code:: c++
+.. code-block:: c++
std::unique_ptr<Foo> x, y;
x.reset(y.release()); -> x = std::move(y);
-If ``y`` is already rvalue, ``std::move()`` is not added. ``x`` and ``y`` can also
-be ``std::unique_ptr<Foo>*``.
+If ``y`` is already rvalue, ``std::move()`` is not added. ``x`` and ``y`` can
+also be ``std::unique_ptr<Foo>*``.
OpenPOWER on IntegriCloud