[swift-api-digester] Ensure we exclude decls of low accessibility from the API comparison. (#5382)

This commit is contained in:
Xi Ge
2016-10-20 12:02:37 -07:00
committed by GitHub
parent 85343bea21
commit 87d22acb67
4 changed files with 61 additions and 1419 deletions

View File

@@ -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()) {