mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[swift-api-digester] Ensure we exclude decls of low accessibility from the API comparison. (#5382)
This commit is contained in:
@@ -1112,6 +1112,15 @@ static bool shouldIgnore(Decl *D) {
|
||||
return true;
|
||||
if (VD->getName().empty())
|
||||
return true;
|
||||
switch (VD->getFormalAccess()) {
|
||||
case Accessibility::Internal:
|
||||
case Accessibility::Private:
|
||||
case Accessibility::FilePrivate:
|
||||
return true;
|
||||
case Accessibility::Public:
|
||||
case Accessibility::Open:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (auto *ClangD = D->getClangDecl()) {
|
||||
|
||||
Reference in New Issue
Block a user