This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix one corner case in make-unique check.
ClosedPublic

Authored by hokein on Mar 6 2018, 1:40 AM.

Details

Summary

Previously, we tried to cover all "std::initializer_list" implicit conversion
cases in the code, but there are some corner cases that not covered (see
newly-added test in the patch).

Sipping all implicit AST nodes is a better way to filter out all these cases.

Diff Detail

Event Timeline

hokein created this revision.Mar 6 2018, 1:40 AM
ilya-biryukov accepted this revision.Mar 6 2018, 4:52 AM
This revision is now accepted and ready to land.Mar 6 2018, 4:52 AM
aaron.ballman accepted this revision.Mar 6 2018, 5:01 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

This revision was automatically updated to reflect the committed changes.