This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Fix typo in comment at __optional_storage_base
ClosedPublic

Authored by hawkinsw on May 29 2022, 5:17 PM.

Details

Summary

Small typo fix(es) for struct definition of __optional_storage_base for
a reference type.

Diff Detail

Event Timeline

hawkinsw created this revision.May 29 2022, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2022, 5:17 PM
hawkinsw requested review of this revision.May 29 2022, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2022, 5:17 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added inline comments.
libcxx/include/optional
395–396

This sentence still doesn't make any sense. I think there is a "not" missing somewhere.

jloser added a subscriber: jloser.May 29 2022, 8:05 PM
jloser added inline comments.
libcxx/include/optional
395–396

I'd be OK with something like this instead - what do you think?

optional<T&> is currently required to be ill-formed. However, it may be allowed in the
future. For this reason, it has already been implemented to ensure we can make the change in an ABI-compatible manner.

hawkinsw added inline comments.May 29 2022, 8:19 PM
libcxx/include/optional
395–396

Yes, of course!! I completely boofed. I was so excited to be able to fit that all within 80 characters that I never thought to reread! I am *so* sorry!

Also, thank you for being as persnickety as I am -- there is definitely a dash needed between ABI and compatible!!

hawkinsw added inline comments.May 29 2022, 8:22 PM
libcxx/include/optional
395–396

And, for the , as well (after the opening clause). You and I are obviously of one mind!

hawkinsw updated this revision to Diff 432828.May 29 2022, 8:23 PM

Updating after excellent feedback from @jloser.

jloser added inline comments.May 29 2022, 9:44 PM
libcxx/include/optional
395–396

Just one small thing: do you mind adding the comma after "However", please? Sorry that I'm such a nitpick with this.

After that, LGTM.

hawkinsw updated this revision to Diff 432920.May 30 2022, 7:45 AM

Updating to address @jloser comment about comma after however as conjunctive adverb.

jloser accepted this revision.May 30 2022, 9:09 AM
hawkinsw marked an inline comment as done.May 30 2022, 9:18 AM
hawkinsw added inline comments.
libcxx/include/optional
395–396

Thanks for the feedback! I posted a follow up!

philnik accepted this revision.May 30 2022, 9:22 AM
This revision is now accepted and ready to land.May 30 2022, 9:22 AM
hawkinsw marked an inline comment as done.May 30 2022, 9:31 AM

@philnik @jloser Sorry, but I don't yet have landing rights. If you could help, that would be great! Thank you!

Mordante accepted this revision.Jun 2 2022, 10:45 AM
Mordante added a subscriber: Mordante.

Thanks, LGTM! I'll land it on your behalf.

This revision was automatically updated to reflect the committed changes.