[PATCH] D13166: Create modernize-make-unique check.
Angel Garcia via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 10:03:19 PDT 2015
angelgarcia created this revision.
angelgarcia added a reviewer: alexfh.
angelgarcia added subscribers: klimek, cfe-commits.
create a check that replaces 'std::unique_ptr<type>(new type(args...))' with 'std::make_unique<type>(args...)'. It was on the list of "Ideas for new Tools". It needs to be tested more carefully, but first I wanted to know if you think it is worth the effort.
http://reviews.llvm.org/D13166
Files:
clang-tidy/modernize/CMakeLists.txt
clang-tidy/modernize/MakeUniqueCheck.cpp
clang-tidy/modernize/MakeUniqueCheck.h
clang-tidy/modernize/ModernizeTidyModule.cpp
test/clang-tidy/modernize-make-unique.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13166.35731.patch
Type: text/x-patch
Size: 10276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150925/3a3a513c/attachment.bin>
More information about the cfe-commits
mailing list