-
Notifications
You must be signed in to change notification settings - Fork 10.5k
ABI checker: diagnose the missing of @available attributes for added ABIs #25104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nkcsgexi
merged 5 commits into
swiftlang:master
from
nkcsgexi:synthesized-type-as-extension
May 30, 2019
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
05bec0c
swift-api-digester: describing external type declarations as extensio…
nkcsgexi f55d3ad
ABI checker: diagnose the missing of @available attributes for added …
nkcsgexi 31b46ee
swift-api-digester: add a flag to disable OS related diagnostics
nkcsgexi 50362a5
test/abi-checker: run stdlib ABI stability test only when assertions …
nkcsgexi de1718e
test/abi-checker: add a stdlib ABI stability test when asserts are di…
nkcsgexi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/api-digester/Outputs/stability-stdlib-abi.asserts.additional.swift.expected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Func _collectReferencesInsideObject(_:) is a new API without @available attribute | ||
Func _loadDestroyTLSCounter() is a new API without @available attribute | ||
Protocol _RuntimeFunctionCountersStats is a new API without @available attribute | ||
Struct _GlobalRuntimeFunctionCountersState is a new API without @available attribute | ||
Struct _ObjectRuntimeFunctionCountersState is a new API without @available attribute | ||
Struct _RuntimeFunctionCounters is a new API without @available attribute | ||
Func _measureRuntimeFunctionCountersDiffs(objects:_:) is a new API without @available attribute |
9 changes: 0 additions & 9 deletions
9
test/api-digester/Outputs/stability-stdlib-abi.swift.expected
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
test/api-digester/Outputs/stability-stdlib-abi.without.asserts.swift.expected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// The init(signOf:magnitudeOf:) blames are false positives. They are not new APIs. | ||
Constructor Double.init(signOf:magnitudeOf:) is a new API without @available attribute | ||
Constructor Float.init(signOf:magnitudeOf:) is a new API without @available attribute | ||
Constructor Float80.init(signOf:magnitudeOf:) is a new API without @available attribute | ||
|
||
Constructor __RawDictionaryStorage.init(coder:) is a new API without @available attribute | ||
Constructor __RawSetStorage.init(coder:) is a new API without @available attribute | ||
Constructor __SwiftNativeNSData.init(coder:) is a new API without @available attribute | ||
Constructor __SwiftNativeNSDictionary.init(coder:) is a new API without @available attribute | ||
Constructor __SwiftNativeNSSet.init(coder:) is a new API without @available attribute | ||
|
||
Func _cos(_:) has been removed | ||
Func _exp(_:) has been removed | ||
Func _exp2(_:) has been removed | ||
|
||
Func _log(_:) has been removed | ||
Func _log10(_:) has been removed | ||
Func _log2(_:) has been removed | ||
|
||
Func _nearbyint(_:) has been removed | ||
Func _rint(_:) has been removed | ||
Func _sin(_:) has been removed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// REQUIRES: OS=macosx | ||
// REQUIRES: swift_stdlib_asserts | ||
// RUN: %empty-directory(%t.tmp) | ||
// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk | ||
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -abi -avoid-location | ||
// RUN: %api-digester -diagnose-sdk -input-paths %S/Inputs/stdlib-stable-abi.json -input-paths %t.tmp/current-stdlib.json -abi -o %t.tmp/changes.txt -v | ||
// RUN: %clang -E -P -x c %S/Outputs/stability-stdlib-abi.without.asserts.swift.expected -o - > %t.tmp/stability-stdlib-abi.swift.expected | ||
// RUN: %clang -E -P -x c %S/Outputs/stability-stdlib-abi.asserts.additional.swift.expected -o - >> %t.tmp/stability-stdlib-abi.swift.expected | ||
// RUN: %clang -E -P -x c %t.tmp/stability-stdlib-abi.swift.expected -o - | sed '/^\s*$/d' | sort > %t.tmp/stability-stdlib-abi.swift.expected.sorted | ||
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' | sort > %t.tmp/changes.txt.tmp | ||
// RUN: diff -u %t.tmp/stability-stdlib-abi.swift.expected.sorted %t.tmp/changes.txt.tmp | ||
|
||
// The digester can incorrectly register a generic signature change when | ||
// declarations are shuffled. rdar://problem/46618883 | ||
// UNSUPPORTED: swift_evolve |
3 changes: 2 additions & 1 deletion
3
test/api-digester/stability-stdlib-abi.swift → ...tability-stdlib-abi-without-asserts.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.