This is an archive of the discontinued LLVM Phabricator instance.

[clang][darwin] add support for Mac Catalyst availability
ClosedPublic

Authored by arphaman on Jun 28 2021, 12:36 PM.

Details

Summary

This patch adds support for Mac Catalyst availability attribute, as supported by the Apple clang compiler. A follow-up patch will provide additional support for inferring Mac Catalyst availability from macOS availability using the mapping in the SDKSettings.json.

Diff Detail

Event Timeline

arphaman created this revision.Jun 28 2021, 12:36 PM
arphaman requested review of this revision.Jun 28 2021, 12:36 PM
dexonsmith accepted this revision.Jun 28 2021, 1:32 PM

LGTM, but since this hasn't been up for long maybe leave it open for a bit in case someone else has a comment.

This revision is now accepted and ready to land.Jun 28 2021, 1:32 PM
aaron.ballman added inline comments.Jun 29 2021, 5:50 AM
clang/include/clang/Basic/Attr.td
860

Should this be (App Extension) instead (consistent with the other cases)?

clang/lib/Sema/SemaDeclAttr.cpp
2564

Do you need the trailing return type here?

2572–2573

Why do you need a function_ref here -- can we not just call MinIOSMacVersion() instead?

Btw, the CI failures look to be unrelated to the patch. (It's pretty unfortunate how often this is the case lately...)

arphaman updated this revision to Diff 358457.Jul 13 2021, 4:40 PM

Sorry, took a bit longer than anticipated. I updated the patch to address reviewer's comments

This revision was landed with ongoing or failed builds.Jul 20 2021, 12:52 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2021, 12:52 PM