This is an archive of the discontinued LLVM Phabricator instance.

Support the standards-based dates for __has_c_attribute
ClosedPublic

Authored by aaron.ballman on Aug 6 2020, 10:51 AM.

Details

Summary

WG14 N2481 was adopted with minor modifications at this week's WG14 meetings. The only modification to the paper was to correct the date for the deprecated attribute to be 201904L (the corrected date value will be present in WG14 N2553 when it gets published).

Clang already supported __has_c_attribute, but was missing support for returning specific values for the dates when an attribute was adopted while waiting to see if WG14 wanted that functionality. Now that WG14 has accepted the proposal for C2x, this patch adds the dates from the paper.

Diff Detail

Event Timeline

aaron.ballman created this revision.Aug 6 2020, 10:51 AM
aaron.ballman requested review of this revision.Aug 6 2020, 10:51 AM
aaron.ballman accepted this revision.Aug 13 2020, 5:47 AM

I'm accepting these changes on my own authority as code owner; if there are issues, I'll deal with them post-commit.

This revision is now accepted and ready to land.Aug 13 2020, 5:47 AM