[clang-tools-extra] r299961 - Add the definition of P in the clang tidy example
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 11 09:28:15 PDT 2017
Author: sylvestre
Date: Tue Apr 11 11:28:15 2017
New Revision: 299961
URL: http://llvm.org/viewvc/llvm-project?rev=299961&view=rev
Log:
Add the definition of P in the clang tidy example
Modified:
clang-tools-extra/trunk/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst?rev=299961&r1=299960&r2=299961&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst Tue Apr 11 11:28:15 2017
@@ -8,8 +8,10 @@ The latter is shorter, simpler and does
.. code-block:: c++
+ std::unique_ptr<int> P;
delete P.release();
// becomes
+ std::unique_ptr<int> P;
P = nullptr;
More information about the cfe-commits
mailing list