mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
don't filter symbols if they have platform-agnostic availability
This commit is contained in:
@@ -64,12 +64,14 @@ namespace {
|
||||
bool isUnavailableOrObsoleted(const Decl *D) {
|
||||
if (const auto *Avail =
|
||||
D->getAttrs().getUnavailable(D->getASTContext())) {
|
||||
switch (Avail->getVersionAvailability(D->getASTContext())) {
|
||||
case AvailableVersionComparison::Unavailable:
|
||||
case AvailableVersionComparison::Obsoleted:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
if (Avail->Platform != PlatformKind::none) {
|
||||
switch (Avail->getVersionAvailability(D->getASTContext())) {
|
||||
case AvailableVersionComparison::Unavailable:
|
||||
case AvailableVersionComparison::Obsoleted:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user