Skip to content

Commit d36fc85

Browse files
committed
swift-module-digester: include underscored and unavailable decls when checking stdlib abi stability.
1 parent 58b3c21 commit d36fc85

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/swift-api-digester/ModuleAnalyzerNodes.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,11 +1216,12 @@ SwiftDeclCollector::shouldIgnore(Decl *D, const Decl* Parent) {
12161216
if (isa<TypeAliasDecl>(VD))
12171217
return true;
12181218
}
1219+
} else {
1220+
if (D->isPrivateStdlibDecl(false))
1221+
return true;
1222+
if (AvailableAttr::isUnavailable(D))
1223+
return true;
12191224
}
1220-
if (D->isPrivateStdlibDecl(false))
1221-
return true;
1222-
if (AvailableAttr::isUnavailable(D))
1223-
return true;
12241225
if (isa<ConstructorDecl>(D))
12251226
return false;
12261227
if (auto VD = dyn_cast<ValueDecl>(D)) {

0 commit comments

Comments
 (0)