mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Use DeclAttributes::isDeprecated in a few more places.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user