[clang-tidy] Do not show incorrect fix in modernize-make-unique
authorIlya Biryukov <ibiryukov@google.com>
Wed, 8 May 2019 08:52:18 +0000 (08:52 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 8 May 2019 08:52:18 +0000 (08:52 +0000)
commit4c32d4fd9f07af76eb96e2e91da1a3df983bf9e7
tree86fae42cc163c8d7d7718aa964cc7f9746c02279
parente96c98f37d3d481ad2f1a96a8ddadd1c8614056f
[clang-tidy] Do not show incorrect fix in modernize-make-unique

Summary:
The case when initialize_list hides behind an implicit case was not
handled before.

Reviewers: aaron.ballman

Reviewed By: aaron.ballman

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61642

llvm-svn: 360231
clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp