This is an archive of the discontinued LLVM Phabricator instance.

[libc++][format][nfc] Header cleanup.
ClosedPublic

Authored by Mordante on Feb 3 2022, 10:25 AM.

Details

Reviewers
Quuxplusone
ldionne
philnik
Group Reviewers
Restricted Project
Commits
rG11e4001ba2b4: [libc++][format][nfc] Header cleanup.
Summary

Remove the unneeded macro protection, forward declarations, and
includes.

Diff Detail

Event Timeline

Mordante requested review of this revision.Feb 3 2022, 10:25 AM
Mordante created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2022, 10:25 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone added a subscriber: Quuxplusone.

If CI's happy, I'm happy.

libcxx/include/__format/formatter.h
21

Maybe also replace this include with more granular includes while you're at it?

ldionne accepted this revision.Feb 3 2022, 12:28 PM
This revision is now accepted and ready to land.Feb 3 2022, 12:28 PM
Mordante updated this revision to Diff 406046.Feb 4 2022, 11:01 AM

There are other min's than _VSTD::min that need to be guarded.

philnik accepted this revision.Feb 4 2022, 12:47 PM
Mordante marked an inline comment as done.Feb 8 2022, 8:51 AM
Mordante added inline comments.
libcxx/include/__format/formatter.h
21

That's hard; it seems the header is no longer needed. So deleted it instead :-)

Mordante updated this revision to Diff 406862.Feb 8 2022, 8:51 AM
Mordante marked an inline comment as done.

Addresses review comments.

This revision was automatically updated to reflect the committed changes.