This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Remove unimplemented parts of chrono synopsis
ClosedPublic

Authored by jloser on Oct 15 2021, 7:56 PM.

Details

Summary

Several parts in the chrono synopsis for C++20 are not yet
implemented. The current recommendation is that things are added to the
synopsis when implemented -- not beforehand. As such, remove the
not-yet-implemented parts to avoid confusion.

Diff Detail

Event Timeline

jloser requested review of this revision.Oct 15 2021, 7:56 PM
jloser created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2021, 7:56 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

@jloser Nothing to do with your patch. Normally we only add a synopsis when we implement that part of the code. That way it's possible to track our implementation status. Clearly we added a part of the synopsis that's not yet implemented.

I'm somewhat in doubt whether we should accept this patch or remove that part of the synopsis.
@ldionne WDYT?

For the record, I think we should just remove this part of the synopsis comment until it's been implemented. This was @mclow.lists in da77fe4a77485f5f4c4eb7f460554fc14e88d3b6 (July 2018); it's possible that back then the synopsis comment was more of a "to-do list" than a "done list." These days I agree with @Mordante's assessment.

I'm OK with removing this part of the synopsis instead. I'd vote that we remove *all* of the C++20-but-not-yet-implemented chrono parts in the synopsis then, such as time zone database, time zones, exception classes, parsing, etc (basically all of C++20 chrono stuff mentioned in the synopsis).

I'm OK with removing this part of the synopsis instead. I'd vote that we remove *all* of the C++20-but-not-yet-implemented chrono parts in the synopsis then, such as time zone database, time zones, exception classes, parsing, etc (basically all of C++20 chrono stuff mentioned in the synopsis).

Agreed I too prefer to remove the not implemented parts.

ldionne accepted this revision.Oct 18 2021, 8:22 AM

Agreed with the removal. I believe things changed and we now use the synopsis for a very clear purpose - back then I don't think we were as systematic with the way we'd use the synopsis comments.

Let's remove what's not implemented yet from the synopsis (this will also make it easier to figure out what we'd need to work on).

Accepting assuming what we all agree on will be implemented, not the current diff :-).

Thanks!

This revision is now accepted and ready to land.Oct 18 2021, 8:22 AM
jloser updated this revision to Diff 380676.Oct 19 2021, 6:43 AM
jloser retitled this revision from [libc++] P1981: Rename leap to leap_second to [libc++][NFC] Remove unimplemented parts of chrono synopsis.
jloser edited the summary of this revision. (Show Details)

Remove unimplemented parts of chrono synopsis

@ldionne @Quuxplusone @Mordante - I've updated this patch to remove the unimplemented parts of chrono from the synopsis. Please give it a look over to make sure everything seems OK. If so, I'll land it.

@ldionne @Quuxplusone @Mordante - I've updated this patch to remove the unimplemented parts of chrono from the synopsis. Please give it a look over to make sure everything seems OK. If so, I'll land it.

@ldionne are you happy with this? I know you approved before I even made the change - so just checking in. :)