mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-16 23:14:36 +00:00
Fix diff emptiness detection for function_decl_diff nodes
* src/abg-comparison.cc (function_decl_diff::length): Just compare the two functions here, damit. * tests/data/test-diff-dwarf/test0-report.txt: Adjust. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
7eecfa8a0c
commit
ec6d70500d
@ -4072,7 +4072,7 @@ function_decl_diff::added_parms() const
|
||||
/// @return the length of the changes of the function.
|
||||
unsigned
|
||||
function_decl_diff::length() const
|
||||
{return changed_parms().size() + removed_parms().size() + added_parms().size();}
|
||||
{return *first_function_decl() != *second_function_decl();}
|
||||
|
||||
/// Serialize a report of the changes encapsulated in the current
|
||||
/// instance of function_decl_diff over to an output stream.
|
||||
|
@ -22,9 +22,11 @@ Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
|
||||
'method int S0::get_member0()'
|
||||
1 member function change:
|
||||
'method void S0::member0()' has some indirect sub-type changes:
|
||||
'method void S0::member0()' access changed from 'private' to 'public'
|
||||
|
||||
|
||||
[C]'method void S0::member0()' has some indirect sub-type changes:
|
||||
'method void S0::member0()' access changed from 'private' to 'public'
|
||||
|
||||
1 Added function:
|
||||
'method int S0::get_member0()
|
||||
|
Loading…
Reference in New Issue
Block a user