HomePhabricator

Improve modernize-make-unique matcher.

Description

Improve modernize-make-unique matcher.

Summary: "std::unique_ptr<int>" is not the same type as "std::unique_ptr<int, std::default_delete<int>>", unless we insert a "hasCanonicalType" in the middle. Probably it also happens in other cases related to default template argument.

Reviewers: klimek

Subscribers: alexfh, cfe-commits

Differential Revision: http://reviews.llvm.org/D14291

Details

Committed
angelgarciaNov 4 2015, 2:27 AM
Differential Revision
D14291: Improve modernize-make-unique matcher.
Parents
rL252040: Revert "[PatternMatch] Switch to use ValueTracking::matchSelectPattern"
Branches
Unknown
Tags
Unknown