This is an archive of the discontinued LLVM Phabricator instance.

LLD: Use using to inherit constructors. No functionality change.
Changes PlannedPublic

Authored by ruiu on Mar 25 2015, 12:22 PM.

Details

Reviewers
shankarke
Summary

There are some empty classes that only inherit constructors.
They look dubious, but I'll leave them as they are.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 22661.Mar 25 2015, 12:22 PM
ruiu retitled this revision from to LLD: Use using to inherit constructors. No functionality change..
ruiu updated this object.
ruiu edited the test plan for this revision. (Show Details)
ruiu added a reviewer: atanasyan.
ruiu set the repository for this revision to rL LLVM.
ruiu added a project: lld.
ruiu added a subscriber: Unknown Object (MLST).
shankarke accepted this revision.Mar 25 2015, 12:42 PM
shankarke added a reviewer: shankarke.
shankarke added a subscriber: shankarke.

LGTM. nice to know about this type of usage.

This revision is now accepted and ready to land.Mar 25 2015, 12:42 PM
atanasyan accepted this revision.Mar 25 2015, 12:42 PM
atanasyan edited edge metadata.

LGTM

Just for information - when I tried to use inherit constructor last time at rL233057 some Windows build-bots could not compile the code. I had to revert back to the regular ctor at rL233058. But I did not investigate the real reason of the problem.

ruiu planned changes to this revision.Mar 25 2015, 12:52 PM

Simon, thanks for the info. I tried to compile this with MSVC 2013 and found that this doesn't compile. Looks like MSVC 2013 doesn't support constructor inheritance at all. https://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx. Sigh.

Abandoning.

atanasyan resigned from this revision.Feb 3 2016, 12:31 AM
atanasyan removed a reviewer: atanasyan.