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

@@ -1000,7 +1000,7 @@ public:
return true;
// Do not annotate references to unavailable decls.
if (AvailableAttr::isUnavailable(D))
if (D->isUnavailable())
return true;
auto &SM = D->getASTContext().SourceMgr;