class_decl_sptr first = d->first_class_decl();
class_decl_sptr second = d->second_class_decl();
- if (equals(*first, *second, 0))
- {
- class_decl_sptr fc = is_class_type(first->get_canonical_type());
- class_decl_sptr sc = is_class_type(second->get_canonical_type());
-
- if (!equals(*fc, *sc, 0))
- return true;
- }
+ if (first->get_qualified_name() == second->get_qualified_name()
+ && first != second
+ && first->get_corpus() == second->get_corpus())
+ return true;
return false;
}
if (!var_dif)
return false;
- {
- // Make sure the variable diff does carry a type change at least
- change_kind ch_kind = NO_CHANGE_KIND;
- if (equals(*var_dif->first_var(), *var_dif->second_var(), &ch_kind))
- return false;
-
- if (!(ch_kind & LOCAL_TYPE_CHANGE_KIND || ch_kind & SUBTYPE_CHANGE_KIND))
- return false;
- }
-
diff *type_dif = var_dif->type_diff().get();
- ABG_ASSERT(type_dif);
+ if (!type_dif)
+ return false;
return type_diff_has_cv_qual_change_only(type_dif);
}