The current fix will break the compilation -- because braced list is not
deducible in std::make_unique (with the use of forwarding) without
specifying the type explicitly.
We could support it in the future.
Paths
| Differential D36786
[clang-tidy] Don't generate fixes for initializer_list constructor in make_unique check. ClosedPublic Authored by hokein on Aug 16 2017, 1:59 AM.
Details Summary The current fix will break the compilation -- because braced list is not We could support it in the future.
Diff Detail
Event TimelineComment Actions LG
This revision is now accepted and ready to land.Aug 16 2017, 8:32 AM Comment Actions Still LG with one comment.
Closed by commit rL311078: [clang-tidy] Don't generate fixes for initializer_list constructor in… (authored by hokein). · Explain WhyAug 17 2017, 3:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 111320 clang-tidy/modernize/MakeSmartPtrCheck.cpp
test/clang-tidy/modernize-make-unique.cpp
|
I'd leave CHECK-FIXES with the original text to ensure no unwanted replacements are performed.