[PATCH] D116822: [Clang][Sema] Use VersionMap from SDKSettings for remapping tvOS and watchOS availability
Egor Zhdan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 10:14:09 PST 2022
egorzhdan created this revision.
Herald added a reviewer: aaron.ballman.
Herald added a subscriber: dexonsmith.
egorzhdan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This makes the mapping between iOS & tvOS/watchOS versions more accurate. For example, iOS 9.3 now gets correctly mapped into tvOS 9.2 and not tvOS 9.3.
Before this change, the incorrect mapping could cause excessive or missing warnings for code that specifies availability for iOS, but not for tvOS/watchOS.
rdar://81491680
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116822
Files:
clang/include/clang/Basic/DarwinSDKInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Sema/Inputs/AppleTVOS15.0.sdk/SDKSettings.json
clang/test/Sema/Inputs/WatchOS7.0.sdk/SDKSettings.json
clang/test/Sema/attr-availability-tvos.c
clang/test/Sema/attr-availability-watchos-infer-from-ios.c
clang/test/Sema/attr-availability-watchos.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116822.398186.patch
Type: text/x-patch
Size: 20020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220107/7203e2b1/attachment-0001.bin>
More information about the cfe-commits
mailing list