mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-module-digester: diagnose fixed-order property changes to computed property and vice versa as ABI breakage.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user