This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Remove TEST_HAS_NO_SPACESHIP_OPERATOR
ClosedPublic

Authored by avogelsgesang on Aug 4 2022, 3:57 PM.

Details

Summary

The corresponding _LIBCPP_HAS_NO_SPACESHIP_OPERATOR macro was already
removed in commit c0f87e8382

Diff Detail

Event Timeline

avogelsgesang created this revision.Aug 4 2022, 3:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 3:57 PM
Herald added a subscriber: yaxunl. · View Herald Transcript
avogelsgesang requested review of this revision.Aug 4 2022, 3:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 3:57 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision as: philnik.Aug 4 2022, 4:03 PM

LGTM in essence, but I don't know what our stance on compiler support in the tests is. @ldionne do we have any schedule how long we support MSVC in the tests?

ldionne accepted this revision.Aug 5 2022, 11:21 AM
ldionne added a subscriber: CaseyCarter.

I think this should be fine -- MSVC definitely implements it nowadays and they use our test suite to run against their ToT compiler+stdlib (this is an assumption but it seems like a safe assumption to make).

@CaseyCarter Do you see a problem with this patch?

Please feel free to ship this if Casey's fine with it or if there's no answer by next Tuesday, I don't think this will cause any issues for them.

This revision is now accepted and ready to land.Aug 5 2022, 11:21 AM
avogelsgesang added a comment.EditedAug 5 2022, 3:31 PM

to my understanding, even before the removal of the TEST_HAS_NO_SPACESHIP_OPERATOR macro, the libc++ tests would not have worked on a compiler which doesn't support operator<=>.
We have other test cases (e.g. time/time.cal/time.cal.day/time.cal.day.nonmembers/comparisons.pass.cpp) which rely on the spaceship operator and are not guarded by this macro

This revision was automatically updated to reflect the committed changes.