This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Rename _LIBCPP_NO_RTTI to _LIBCPP_HAS_NO_RTTI
ClosedPublic

Authored by philnik on Feb 2 2023, 3:08 AM.

Details

Summary

Other macros that disable parts of the library are named _LIBCPP_HAS_NO_WHATEVER.

Diff Detail

Event Timeline

philnik created this revision.Feb 2 2023, 3:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 3:08 AM
philnik requested review of this revision.Feb 2 2023, 3:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 3:08 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Feb 2 2023, 10:04 AM

Thanks, LGTM!

This revision is now accepted and ready to land.Feb 2 2023, 10:04 AM
ldionne accepted this revision.EditedFeb 3 2023, 2:23 PM

This seems fine... however do you plan on doing the same for _LIBCPP_NO_EXCEPTIONS? Cause I would perhaps object to that one (on the basis that it probably touches a gazillion lines).

This seems fine... however do you plan on doing the same for _LIBCPP_NO_EXCEPTIONS? Cause I would perhaps object to that one (on the basis that it probably touches a gazillion lines).

I have D143163 for that. Though it mostly touches istream and ostream, so it's mostly touching code that's just laying around, not a lot that is actively worked on. I can wait for approval from you though and talk about it next week if you think it's too much noise.