[PATCH] D105257: [clang][darwin] add support for remapping macOS availability to Mac Catalyst availability
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 30 19:56:35 PDT 2021
arphaman created this revision.
arphaman added reviewers: dexonsmith, Bigcheese, dcoughlin.
Herald added a subscriber: ributzka.
Herald added a reviewer: aaron.ballman.
arphaman requested review of this revision.
Herald added projects: clang, LLVM.
Herald added a subscriber: llvm-commits.
This patch adds supports for clang to remap macOS availability attributes that have introduced, deprecated or obsoleted versions to appropriate Mac Catalyst availability attributes. This mapping is done using the version mapping provided in the macOS SDK, in the `SDKSettings.json` file. The mappings in the SDKSettings json file will also be used in the clang driver for the driver Mac Catalyst patch, and they could also be used in the future for other platforms as well.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105257
Files:
clang/include/clang/Basic/DarwinSDKInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Basic/DarwinSDKInfo.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Driver/Inputs/MacOSX10.14.sdk/SDKSettings.json
clang/test/Driver/Inputs/WatchOS6.0.sdk/SDKSettings.json
clang/test/Driver/Inputs/iPhoneOS13.0.sdk/SDKSettings.json
clang/test/Sema/Inputs/MacOSX11.0.sdk/SDKSettings.json
clang/test/Sema/attr-availability-iosmac-infer-from-macos.c
llvm/include/llvm/Support/VersionTuple.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105257.355754.patch
Type: text/x-patch
Size: 24692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210701/6450ced8/attachment-0001.bin>
More information about the cfe-commits
mailing list