This is an archive of the discontinued LLVM Phabricator instance.

Support __has_c_attribute
ClosedPublic

Authored by aaron.ballman on Nov 5 2017, 1:57 PM.

Details

Reviewers
rsmith
Summary

We have the has_cpp_attribute builtin macro to determine when an attribute is supported with C++ [[]] syntax, and this patch adds the analogous has_c_attribute builtin macro so that users can test whether a given [[]] attribute is available in C when -fdouble-square-bracket-attributes is specified.

Diff Detail

Event Timeline

aaron.ballman created this revision.Nov 5 2017, 1:57 PM
rsmith accepted this revision.Dec 7 2017, 12:42 PM

Please update the documentation and the release notes.

This revision is now accepted and ready to land.Dec 7 2017, 12:42 PM
aaron.ballman closed this revision.Dec 7 2017, 1:38 PM

Commit in r320088.