AST: Introduce Decl::isUnavailable().

Replace calls to `AvailableAttr::isUnavailable()` with `Decl::isUnavailable()`.
This commit is contained in:
Allan Shortlidge
2024-11-23 17:39:07 -08:00
parent 94f4b0598a
commit 1dc7aa5b7b
19 changed files with 41 additions and 26 deletions

View File

@@ -1767,8 +1767,8 @@ SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
if (D->isPrivateSystemDecl(false))
return true;
}
if (AvailableAttr::isUnavailable(D))
return true;
if (D->isUnavailable())
return true;
if (auto VD = dyn_cast<ValueDecl>(D)) {
switch (getAccessLevel(VD)) {
case AccessLevel::Internal: