This is an archive of the discontinued LLVM Phabricator instance.

Remove 'explicit' keyword from constructors with multiple (non-default) arguments.
AbandonedPublic

Authored by alexfh on Jun 21 2014, 4:20 PM.

Details

Reviewers
djasper
Summary

Remove 'explicit' keyword from constructors with multiple (non-default)
arguments (clang-tidy google-explicit-constructor check).

Diff Detail

Event Timeline

alexfh updated this revision to Diff 10723.Jun 21 2014, 4:20 PM
alexfh retitled this revision from to Remove 'explicit' keyword from constructors with multiple (non-default) arguments..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: djasper.
alexfh added a subscriber: Unknown Object (MLST).

Fwiw, if I'm not mistaken, explicit on more - than - one - arg actors does
have some meaning in c++11. It means you can't construct from a braced init
list.

I'm not sure if that's important to you/this warning.

alexfh abandoned this revision.Feb 25 2015, 7:23 AM

There's actually value in declaring multiple-argument constructrors explicit, thus the patch is not needed. Maybe even the opposite is needed: adding explicit to most constructors. But this will be a different patch anyway.