This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Rename helper function for testing spaceship
ClosedPublic

Authored by ldionne on Mar 27 2023, 11:12 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG177cb1030f5d: [libc++][NFC] Rename helper function for testing spaceship
Summary

The helper is mis-named, since it won't work as-is on ordered containers
like set and map, because they rely on being able to store keys that are
partial_ordering::unordered, and that's UB for an ordered container.

This was most likely a typo or an unintended naming mistake, since
the function is only used with sequence containers anyway.

Diff Detail

Event Timeline

ldionne created this revision.Mar 27 2023, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2023, 11:12 AM
Herald added a subscriber: yaxunl. · View Herald Transcript
ldionne requested review of this revision.Mar 27 2023, 11:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2023, 11:12 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

@ldionne Thank you for pointing this out and fixing it. LGTM

Some of the tests are also misplaced and I have a patch to correct that https://reviews.llvm.org/D146902. I suppose I need to wait for you to commit these changes, so I can rebase and commit my fix to avoid conflicts.

ldionne accepted this revision.Mar 28 2023, 6:58 AM

@ldionne Thank you for pointing this out and fixing it. LGTM

Some of the tests are also misplaced and I have a patch to correct that https://reviews.llvm.org/D146902. I suppose I need to wait for you to commit these changes, so I can rebase and commit my fix to avoid conflicts.

Ok, let's do that! I wasn't aware of D146902, otherwise I would have held off with this change.

This revision is now accepted and ready to land.Mar 28 2023, 6:58 AM