From: Dodji Seketeli Date: Wed, 4 Sep 2019 09:07:59 +0000 (+0200) Subject: [has_type_change] Better detect type size changes X-Git-Tag: upstream/1.7~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e528d5b8ac90ae9983c674ea784e3c95b7db6fc7;p=platform%2Fupstream%2Flibabigail.git [has_type_change] Better detect type size changes While looking at something else, I noticed that we could be missing type size changes on function parameters when using has_type_change. Fixed thus. * src/abg-comp-filter.cc (has_type_change): Support function parameters. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-comp-filter.cc b/src/abg-comp-filter.cc index d412bca7..eb383c52 100644 --- a/src/abg-comp-filter.cc +++ b/src/abg-comp-filter.cc @@ -176,6 +176,9 @@ has_type_size_change(const diff* diff) if (!diff) return false; + if (const fn_parm_diff* fn_parm_d = is_fn_parm_diff(diff)) + diff = fn_parm_d->type_diff().get(); + type_base_sptr f = is_type(diff->first_subject()), s = is_type(diff->second_subject());