[NFC] Use DeclAttributes::isDeprecated in a few more places.

This commit is contained in:
Holly Borla
2024-06-10 07:16:44 -07:00
parent 005b45c1cc
commit 5da7ac6cbd
5 changed files with 5 additions and 5 deletions

View File

@@ -448,7 +448,7 @@ static bool initDocEntityInfo(const Decl *D,
}
Info.IsUnavailable = AvailableAttr::isUnavailable(D);
Info.IsDeprecated = D->getAttrs().getDeprecated(D->getASTContext()) != nullptr;
Info.IsDeprecated = D->getAttrs().isDeprecated(D->getASTContext());
Info.IsOptional = D->getAttrs().hasAttribute<OptionalAttr>();
if (auto *AFD = dyn_cast<AbstractFunctionDecl>(D)) {
Info.IsAsync = AFD->hasAsync();