This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Move basic_format_parse_context to its own header.
ClosedPublic

Authored by Mordante on May 18 2021, 10:54 AM.

Details

Summary

This is a preparation to split the format header in smaller parts for the
upcoming patches.

Depends on D101723

Diff Detail

Event Timeline

Mordante created this revision.May 18 2021, 10:54 AM
Mordante requested review of this revision.May 18 2021, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2021, 10:54 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante retitled this revision from Move basic_format_parse_context to its own header. to [libc++][NFC] Move basic_format_parse_context to its own header..May 19 2021, 9:57 AM

I guess I looked at these in the wrong order 😁

WDYT about merging this and D101723 into one file, they seem small enough. That being said, I'd be OK with two headers, especially if either is expected to grow.

Both headers are complete. I separated them since they are defined in different sections of the standard. I don't object against moving them together. Since I think both classes are used everywhere in the std::format. Do you have a suggestion for a name, I have __format/basic.h, but that doesn't feel great.

Mordante updated this revision to Diff 347202.May 22 2021, 6:36 AM

Rebased to fix applying D93593.

ldionne accepted this revision.May 25 2021, 1:24 PM
This revision is now accepted and ready to land.May 25 2021, 1:24 PM