ABI checker: removing deprecated APIs should be considered acceptable

This commit is contained in:
Xi Ge
2021-10-20 13:16:52 -07:00
parent bab9189bd7
commit 819e53e94f
2 changed files with 4 additions and 2 deletions

View File

@@ -553,7 +553,10 @@ static void diagnoseRemovedDecl(const SDKNodeDecl *D) {
if (D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient))
return;
}
D->emitDiag(SourceLoc(), diag::removed_decl, D->isDeprecated());
// Don't diagnose removal of deprecated APIs.
if (!D->isDeprecated()) {
D->emitDiag(SourceLoc(), diag::removed_decl, false);
}
}
// This is first pass on two given SDKNode trees. This pass removes the common part