[PATCH] D85450: Support the standards-based dates for __has_c_attribute

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 10:51:55 PDT 2020


aaron.ballman created this revision.
aaron.ballman added a reviewer: rsmith.
Herald added a subscriber: krytarowski.
aaron.ballman requested review of this revision.

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.


https://reviews.llvm.org/D85450

Files:
  clang/include/clang/Basic/Attr.td
  clang/test/Preprocessor/has_c_attribute.c
  clang/utils/TableGen/ClangAttrEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85450.283661.patch
Type: text/x-patch
Size: 6095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200806/f7cfecd6/attachment.bin>


More information about the cfe-commits mailing list