[all-commits] [llvm/llvm-project] 3a32d2: [Clang][Sema] Use VersionMap from SDKSettings for ...
Egor Zhdan via All-commits
all-commits at lists.llvm.org
Wed Jan 12 09:53:37 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a32d2e74e5c03d97a41ef7b0a01f206af62ad4f
https://github.com/llvm/llvm-project/commit/3a32d2e74e5c03d97a41ef7b0a01f206af62ad4f
Author: Egor Zhdan <e_zhdan at apple.com>
Date: 2022-01-12 (Wed, 12 Jan 2022)
Changed paths:
M clang/include/clang/Basic/DarwinSDKInfo.h
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
A clang/test/Sema/Inputs/AppleTVOS15.0.sdk/SDKSettings.json
A clang/test/Sema/Inputs/WatchOS7.0.sdk/SDKSettings.json
M clang/test/Sema/attr-availability-tvos.c
M clang/test/Sema/attr-availability-watchos.c
Log Message:
-----------
[Clang][Sema] Use VersionMap from SDKSettings for remapping tvOS and watchOS availability
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
Differential Revision: https://reviews.llvm.org/D116822
More information about the All-commits
mailing list