mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Framework authors can use SwiftWraper:none to bring back string enums to type alias of String. When diagnosing source breaking changes, these type alias are shown as removed. Therefore, it's hard to tell whether these changes are automatically migratable. This patch refines the removed-type-alias by further analyzing whether a RawRepresentable with the same usr appeared in the later version of SDK. If there is, another kind of message is emitted for differentiation.
9 lines
659 B
Swift
9 lines
659 B
Swift
// REQUIRES: OS=macosx
|
|
// RUN: %empty-directory(%t.mod)
|
|
// RUN: %empty-directory(%t.sdk)
|
|
// RUN: %empty-directory(%t.module-cache)
|
|
// RUN: %api-digester -dump-sdk -module APINotesTest -o %t.dump1.json -module-cache-path %t.module-cache %clang-importer-sdk-nosource -swift-version 4 -I %S/Inputs/APINotesLeft
|
|
// RUN: %api-digester -dump-sdk -module APINotesTest -o %t.dump2.json -module-cache-path %t.module-cache %clang-importer-sdk-nosource -swift-version 4 -I %S/Inputs/APINotesRight
|
|
// RUN: %api-digester -compare-sdk --input-paths %t.dump1.json -input-paths %t.dump2.json -o %t.result -json
|
|
// RUN: diff -u %S/Outputs/apinotes-migrator-gen.json %t.result
|