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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits