summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
blob: 83122356d4606bd6597e19bd6ef4f9702f20f641 (plain)
1
2
3
4
5
6
7
.. title:: clang-tidy - readability-uniqueptr-delete-release

readability-uniqueptr-delete-release
====================================

Replace ``delete <unique_ptr>.release()`` with ``<unique_ptr> = nullptr``.
The latter is shorter, simpler and does not require use of raw pointer APIs.
OpenPOWER on IntegriCloud