This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Support initializer-list constructor cases in modernize-make-unique.
ClosedPublic

Authored by hokein on Jul 28 2017, 1:19 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein created this revision.Jul 28 2017, 1:19 PM
alexfh accepted this revision.Aug 3 2017, 7:50 AM

LG with a couple of comments.

clang-tidy/modernize/MakeSmartPtrCheck.cpp
253 ↗(On Diff #108699)

s/auto/unsigned/, since the use of auto here seems to not be in line with http://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable.

254 ↗(On Diff #108699)

The < 0 case doesn't make sense (it will be clear once you change the auto above to the real type).

This revision is now accepted and ready to land.Aug 3 2017, 7:50 AM
malcolm.parsons added inline comments.
test/clang-tidy/modernize-make-unique.cpp
291 ↗(On Diff #108699)

The comment doesn't match the test?

hokein updated this revision to Diff 109594.Aug 3 2017, 10:47 AM
hokein marked 3 inline comments as done.

Address review comments

This revision was automatically updated to reflect the committed changes.