mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This option access a file that lists protocol names that are 'whitelisted' for getting new protocol requirements. This allows the SDK checker to avoid flagging protocol method additions for protocols that we know are not intended for user classes to conform to.
9 lines
757 B
Swift
9 lines
757 B
Swift
// RUN: %empty-directory(%t.module-cache)
|
|
// RUN: %api-digester -dump-sdk -module Foo -o %t.dump1.json -module-cache-path %t.module-cache %clang-importer-sdk-nosource -I %S/Inputs/Foo -avoid-location
|
|
// RUN: %api-digester -dump-sdk -module Foo -o %t.dump2.json -module-cache-path %t.module-cache %clang-importer-sdk-nosource -I %S/Inputs/Foo-new-version -avoid-location
|
|
// RUN: %api-digester -diagnose-sdk -protocol-requirement-white-list %S/Inputs/Foo-prot-whitelist.txt -print-module --input-paths %t.dump1.json -input-paths %t.dump2.json -o %t.result
|
|
|
|
// RUN: %clang -E -P -x c %S/Outputs/Foo-diff.txt -o - | sed '/^\s*$/d' > %t.expected
|
|
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
|
|
// RUN: diff -u %t.expected %t.result.tmp
|