This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][test] Make LIBCPP_STATIC_ASSERT usable at namespace scope
ClosedPublic

Authored by CaseyCarter on Jan 9 2022, 12:32 AM.

Details

Summary

... even when !defined(_LIBCPP_VERSION). (Note that the previous definition for this case - ((void)0); - is ill-formed at namespace scope.)

Diff Detail

Event Timeline

CaseyCarter requested review of this revision.Jan 9 2022, 12:32 AM
CaseyCarter created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptJan 9 2022, 12:32 AM
Quuxplusone added a subscriber: Quuxplusone.

LGTM%comment.

libcxx/test/support/test_macros.h
238–243

I think you're onto something here. :)

Mordante accepted this revision.Jan 10 2022, 9:35 AM
Mordante added a subscriber: Mordante.

Thanks, LGTM!

This revision is now accepted and ready to land.Jan 10 2022, 9:35 AM
ldionne accepted this revision.Jan 10 2022, 12:44 PM
CaseyCarter added inline comments.Jan 10 2022, 4:30 PM
libcxx/test/support/test_macros.h
238–243

I'll change these when I push.

CaseyCarter marked an inline comment as done.Jan 10 2022, 4:36 PM