[PATCH] D105052: [clang][darwin] add support for Mac Catalyst availability

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 28 12:36:36 PDT 2021


arphaman created this revision.
arphaman added reviewers: dexonsmith, dcoughlin, Bigcheese.
Herald added a subscriber: ributzka.
Herald added a reviewer: aaron.ballman.
arphaman requested review of this revision.

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.


https://reviews.llvm.org/D105052

Files:
  clang/include/clang/Basic/Attr.td
  clang/lib/Basic/Targets/OSTargets.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CodeGenObjC/availability-check-maccatalyst.m
  clang/test/FixIt/fixit-availability-maccatalyst.m
  clang/test/Sema/attr-availability-maccatalyst.c
  clang/test/SemaObjC/unguarded-availability-maccatalyst.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105052.354990.patch
Type: text/x-patch
Size: 16927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210628/f8697de0/attachment.bin>


More information about the cfe-commits mailing list