mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
swift-module-digester: include underscored and unavailable decls when checking stdlib abi stability.
This commit is contained in:
@@ -1216,11 +1216,12 @@ SwiftDeclCollector::shouldIgnore(Decl *D, const Decl* Parent) {
|
|||||||
if (isa<TypeAliasDecl>(VD))
|
if (isa<TypeAliasDecl>(VD))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (D->isPrivateStdlibDecl(false))
|
||||||
|
return true;
|
||||||
|
if (AvailableAttr::isUnavailable(D))
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
if (D->isPrivateStdlibDecl(false))
|
|
||||||
return true;
|
|
||||||
if (AvailableAttr::isUnavailable(D))
|
|
||||||
return true;
|
|
||||||
if (isa<ConstructorDecl>(D))
|
if (isa<ConstructorDecl>(D))
|
||||||
return false;
|
return false;
|
||||||
if (auto VD = dyn_cast<ValueDecl>(D)) {
|
if (auto VD = dyn_cast<ValueDecl>(D)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user