[PATCH] D25898: [clang-tidy] Enhance modernize-make-unique to handle unique_ptr.reset()
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 22 14:46:53 PDT 2016
malcolm.parsons created this revision.
malcolm.parsons added reviewers: alexfh, aaron.ballman.
malcolm.parsons added a subscriber: cfe-commits.
Avoid naked new in unique_ptr.reset() by using make_unique
Fixes http://llvm.org/PR27383
https://reviews.llvm.org/D25898
Files:
clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tidy/modernize/MakeSmartPtrCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/modernize-make-shared.rst
docs/clang-tidy/checks/modernize-make-unique.rst
test/clang-tidy/modernize-make-shared.cpp
test/clang-tidy/modernize-make-unique.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25898.75535.patch
Type: text/x-patch
Size: 22489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161022/07fc6413/attachment-0001.bin>
More information about the cfe-commits
mailing list