This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Move basic_ios extern instantiations into <ios>
ClosedPublic

Authored by philnik on May 18 2023, 3:05 PM.

Details

Summary

basic_ios is defined in <ios>, so it seems weird that we declare the explicit instantiation for it i <streambuf>, which is technically unrelated.

Diff Detail

Event Timeline

philnik created this revision.May 18 2023, 3:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 3:05 PM
philnik requested review of this revision.May 18 2023, 3:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 3:05 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
EricWF requested changes to this revision.May 18 2023, 3:47 PM
EricWF added a subscriber: EricWF.

You need to describe the rational in the description.

This revision now requires changes to proceed.May 18 2023, 3:47 PM
philnik edited the summary of this revision. (Show Details)May 19 2023, 8:56 AM
EricWF accepted this revision.May 19 2023, 9:16 AM
This revision is now accepted and ready to land.May 19 2023, 9:16 AM
EricWF requested changes to this revision.May 19 2023, 9:17 AM

Wait a second.

Are you sure that moving the declaration before the definition of a ton of member functions is behavior preserving?

This revision now requires changes to proceed.May 19 2023, 9:17 AM
EricWF accepted this revision.May 19 2023, 9:23 AM

Did some digging, and it seems this should be fine. LGTM again.

This revision is now accepted and ready to land.May 19 2023, 9:23 AM
ldionne accepted this revision.May 19 2023, 10:00 AM
ldionne added a subscriber: ldionne.

LGTM too, thanks for explaining!

philnik updated this revision to Diff 524389.May 22 2023, 10:47 AM

Try to fix CI