[clang-tidy] Don't generate incorrect fixes for class with deleted copy constructor...
authorHaojian Wu <hokein@google.com>
Mon, 26 Nov 2018 09:33:08 +0000 (09:33 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 26 Nov 2018 09:33:08 +0000 (09:33 +0000)
commitdbfa9c3e0a34807489d31fca7dac3de5c1e0446d
tree67e7f03466342853815abca7880de188e643d043
parent717412b5f9016555241b134833f9d6297e3fac07
[clang-tidy] Don't generate incorrect fixes for class with deleted copy constructor in smart_ptr check.

Summary:
The fix for aggregate initialization (`std::make_unique<Foo>(Foo {1, 2})` needs
to see Foo copy constructor, otherwise we will have a compiler error. So we
only emit the check warning.

Reviewers: JonasToth, aaron.ballman

Subscribers: xazax.hun, cfe-commits

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

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