Skip to content

Commit 299f3a5

Browse files
committed
ABI checker: exclude unavailable decls from ABI descriptors
Framework authors usually have different schemes for different deployment targets. We should exclude platform-unavailable ABIs from the Json file so developers will only be warned of the breakages that are relevant to the current scheme. rdar://54273296
1 parent 93e06fc commit 299f3a5

File tree

3 files changed

+480
-3552
lines changed

3 files changed

+480
-3552
lines changed

test/api-digester/Inputs/cake.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,12 @@ public class SwiftObjcClass {
130130
@objc(ObjCFool:ObjCA:ObjCB:)
131131
public func foo(a:Int, b:Int, c: Int) {}
132132
}
133+
134+
@available(iOS 10.2, tvOS 10.3, watchOS 3.4, *)
135+
@available(macOS, unavailable)
136+
public class UnavailableOnMac {}
137+
138+
@available(macOS, unavailable)
139+
extension SwiftObjcClass {
140+
public func functionUnavailableOnMac() {}
141+
}

0 commit comments

Comments
 (0)