Remove DiffStatus::opaque_diff
Since the helper function can compare the opaque types' unique IDs, it is not necessary to return opaque_diff and compare the reference types' names. Test: ./test.py Bug: 255702405 Change-Id: I1264b0f4d0db178a3dc2202a265c5ccb38df7dc2
This commit is contained in:
@@ -842,7 +842,7 @@ DiffStatus AbiDiffHelper::CompareAndDumpTypeDiff(
|
||||
// One of the types were hidden, we cannot compare further.
|
||||
return AreOpaqueTypesEqual(old_type_id, new_type_id)
|
||||
? DiffStatus::no_diff
|
||||
: DiffStatus::opaque_diff;
|
||||
: DiffStatus::direct_diff;
|
||||
}
|
||||
|
||||
LinkableMessageKind old_kind = old_it->second->GetKind();
|
||||
@@ -856,16 +856,6 @@ DiffStatus AbiDiffHelper::CompareAndDumpTypeDiff(
|
||||
}
|
||||
|
||||
TypeQueueCheckAndPop(type_queue);
|
||||
|
||||
if (diff_policy_options_.consider_opaque_types_different_ &&
|
||||
diff_status == DiffStatus::opaque_diff) {
|
||||
// If `-considered-opaque-types-different` is specified and the comparison
|
||||
// of `referenced_type` results in `opaque_diff`, then check the type name
|
||||
// at this level.
|
||||
return (old_it->second->GetName() == new_it->second->GetName() ?
|
||||
DiffStatus::no_diff : DiffStatus::direct_diff);
|
||||
}
|
||||
|
||||
return diff_status;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,6 @@ enum DiffStatus {
|
||||
// There was a diff found, however it need not be added as a part of a diff
|
||||
// message, since it would have already been noted elsewhere.
|
||||
indirect_diff = 2,
|
||||
|
||||
opaque_diff = 3,
|
||||
};
|
||||
|
||||
static inline DiffStatus operator|(DiffStatus f, DiffStatus s) {
|
||||
|
||||
Reference in New Issue
Block a user