swift-api-digester: Ignore the declarations that have no accessibility set. rdar://35375615 (#12784)

This commit is contained in:
Xi Ge
2017-11-07 11:19:54 -08:00
committed by GitHub
parent 20a488225a
commit 884f3dbdc2

View File

@@ -1282,6 +1282,9 @@ static bool shouldIgnore(Decl *D) {
return true;
if (VD->getBaseName().empty())
return true;
// This shouldn't happen, being forgiving here.
if (!VD->hasAccess())
return true;
switch (VD->getFormalAccess()) {
case AccessLevel::Internal:
case AccessLevel::Private: