swift-module-digester: diagnose fixed-order property changes to computed property and vice versa as ABI breakage.

This commit is contained in:
Xi Ge
2018-10-01 15:54:02 -07:00
parent 4b8507c858
commit 8e81b59f4e
8 changed files with 26 additions and 1 deletions

View File

@@ -808,6 +808,10 @@ void swift::ide::api::SDKNodeDeclVar::diagnose(SDKNode *Right) {
getScreenInfo());
}
if (Ctx.checkingABI()) {
if (hasFixedBinaryOrder() != RV->hasFixedBinaryOrder()) {
Ctx.getDiags().diagnose(SourceLoc(), diag::decl_has_fixed_order_change,
getScreenInfo(), hasFixedBinaryOrder());
}
if (hasFixedBinaryOrder() && RV->hasFixedBinaryOrder() &&
getFixedBinaryOrder() != RV->getFixedBinaryOrder()) {
Ctx.getDiags().diagnose(SourceLoc(), diag::decl_reorder,