This is an archive of the discontinued LLVM Phabricator instance.

[libc++][format] Allows width arg-id with value 0.
ClosedPublic

Authored by Mordante on Jul 27 2022, 10:19 AM.

Details

Reviewers
ldionne
vitaut
Group Reviewers
Restricted Project
Commits
rG36e0e2c48544: [libc++][format] Allows width arg-id with value 0.
Summary

Implements:

  • LWG3721 Allow an arg-id with a value of zero for width in std-format-spec

Diff Detail

Event Timeline

Mordante created this revision.Jul 27 2022, 10:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:19 AM
Mordante requested review of this revision.Jul 27 2022, 10:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:19 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

One check less, yay!

libcxx/test/std/utilities/format/format.functions/format_tests.h
245

As before, I'd recommend getting rid of template operator()<...> in favor of something more readable like a normal function call.

Thanks for the review!

libcxx/test/std/utilities/format/format.functions/format_tests.h
245

Agreed, that's on my todo list. But I want to look at that when there are no patches in review that would result in merge conflicts. (The wouldn't be hard to solve, but I prefer avoiding the hassle.)

One check less, yay!

I'm actually surprised how fast this issue went through LWG :-)

I'm actually surprised how fast this issue went through LWG :-)

Move Fast and Break ABI

ldionne accepted this revision.Aug 31 2022, 9:31 AM
This revision is now accepted and ready to land.Aug 31 2022, 9:31 AM
This revision was landed with ongoing or failed builds.Aug 31 2022, 10:19 AM
This revision was automatically updated to reflect the committed changes.