[clang][darwin] add support for Mac Catalyst availability
authorAlex Lorenz <arphaman@gmail.com>
Wed, 30 Jun 2021 14:34:26 +0000 (07:34 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 20 Jul 2021 19:51:57 +0000 (12:51 -0700)
commita8262a383bc627cef3de78e60bbbedb788157a50
tree357247f4fc0dcaadbb45c71a9f8dd2041a30f782
parent0c0549fbb3e910ea28a27d901a40410d048f26ac
[clang][darwin] add support for Mac Catalyst availability

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

Differential Revision: https://reviews.llvm.org/D105052
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 [new file with mode: 0644]
clang/test/FixIt/fixit-availability-maccatalyst.m [new file with mode: 0644]
clang/test/Sema/attr-availability-maccatalyst.c [new file with mode: 0644]
clang/test/SemaObjC/unguarded-availability-maccatalyst.m [new file with mode: 0644]