This is an archive of the discontinued LLVM Phabricator instance.

[clang] makes built-in traits match their stdlib counterparts' names
Needs ReviewPublic

Authored by cjdb on Apr 28 2023, 3:40 PM.

Details

Summary

The original names apparently broke convention by not making them the
same as the C++ type trait names, so we're creating aliases for them.
It's unclear whether or not the existing names can be deprecated and
removed in the future.

Diff Detail

Event Timeline

cjdb created this revision.Apr 28 2023, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2023, 3:40 PM
cjdb requested review of this revision.Apr 28 2023, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2023, 3:40 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cjdb added a comment.May 1 2023, 3:25 PM

Looks like I need to special-case __is_null_pointer as a function for libstdc++.

Looks like I need to special-case __is_null_pointer as a function for libstdc++.

Yeah, precommit CI found an issue with that.