This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove test suite workarounds on Apple with old Clangs
ClosedPublic

Authored by ldionne on Apr 14 2021, 6:50 AM.

Details

Summary

In 5fd17ab, we worked around the Apple system headers not providing
const-correct overloads for some <string.h> functions. However, that
required an attribute that was only present in recent Clangs at the
time. We can now assume that all supported Clang versions on Apple
platforms do support that attribute.

Diff Detail

Event Timeline

ldionne requested review of this revision.Apr 14 2021, 6:50 AM
ldionne created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2021, 6:50 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone accepted this revision.Apr 14 2021, 12:00 PM
Quuxplusone added a subscriber: Quuxplusone.

LGTM!
Bonus tech-debt points if you want to make a followup NFC commit to consistently use ASSERT_SAME_TYPE and, like, const wchar_t *cws instead of manual casting everywhere.

This revision is now accepted and ready to land.Apr 14 2021, 12:00 PM

CI tests passed but failed to update in Phab. Shippping now.

LGTM!
Bonus tech-debt points if you want to make a followup NFC commit to consistently use ASSERT_SAME_TYPE and, like, const wchar_t *cws instead of manual casting everywhere.

Yeah, I'll do that in a follow-up NFC. Thanks!

This revision was landed with ongoing or failed builds.Apr 15 2021, 10:06 AM
This revision was automatically updated to reflect the committed changes.