This is an archive of the discontinued LLVM Phabricator instance.

[libc++][docs] Mark LWG3420 complete
ClosedPublic

Authored by jloser on Oct 11 2021, 7:20 PM.

Details

Reviewers
ldionne
Quuxplusone
Mordante
Group Reviewers
Restricted Project
Commits
rGca889733a227: [libc++][docs] Mark LWG3420 complete
Summary

Mark LWG3420 as complete. Currently, the cpp17_iterator concept
checks that the type looks like an iterator first before checking if it
is copyable.

Diff Detail

Event Timeline

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

Confirmed, we already implement the resolution here. LGTM! (Please wait for a second libc++ approver before landing.)

ldionne accepted this revision.Oct 12 2021, 7:50 AM

LGTM, but can you confirm we have a test for that? Also, the commit you linked to isn't the right one, 120fa8293e22f760374a5757d081dc674046e0f0 is just moving stuff around. You should fix the commit message.

This revision is now accepted and ready to land.Oct 12 2021, 7:50 AM
ldionne added inline comments.Oct 12 2021, 7:51 AM
libcxx/docs/Status/Cxx2bIssues.csv
26–27

Also, this wasn't done in LLVM 11 since we didn't implement concepts then, 14 is when we'll ship them for the first time.

jloser updated this revision to Diff 379254.Oct 12 2021, 7:38 PM
jloser edited the summary of this revision. (Show Details)

[NFC] Update commit message

jloser marked an inline comment as done.Oct 12 2021, 7:39 PM

LGTM, but can you confirm we have a test for that? Also, the commit you linked to isn't the right one, 120fa8293e22f760374a5757d081dc674046e0f0 is just moving stuff around. You should fix the commit message.

__cpp17_iterator seems to get used pretty heavily in libcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/legacy_iterator.compile.pass.cpp. Is this what you had in mind or something more specific?

libcxx/docs/Status/Cxx2bIssues.csv
26–27

Fixed, thanks!

jloser updated this revision to Diff 379256.Oct 12 2021, 7:40 PM
jloser edited the summary of this revision. (Show Details)

[NFC] Fix commit message

This revision was automatically updated to reflect the committed changes.

LGTM, but can you confirm we have a test for that? Also, the commit you linked to isn't the right one, 120fa8293e22f760374a5757d081dc674046e0f0 is just moving stuff around. You should fix the commit message.

__cpp17_iterator seems to get used pretty heavily in libcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/legacy_iterator.compile.pass.cpp. Is this what you had in mind or something more specific?

@ldionne I just landed this, but if you think of a test you'd like to see (beyond what we have now), let me know.