]> sourceware.org Git - libabigail.git/commit
Rename diff::length() into diff::has_changes()
authorDodji Seketeli <dodji@redhat.com>
Thu, 5 Feb 2015 08:44:00 +0000 (09:44 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 5 Feb 2015 11:44:59 +0000 (12:44 +0100)
commit3b3dbf6643e21acbe095761cf1b6359389fea617
treefc60f88dffc1ee7d4ac77cf9539f4e0aec457b8b
parent32352341c5eb329624c381270c089d68f27c281c
Rename diff::length() into diff::has_changes()

Since it turned out that the length of the changes carried by a diff
node has never been used in the algorithms of the comparison engine,
the diff::length() feels wrong.  What we want is rather a name like
diff::has_changes() so this is what this patch does.

* include/abg-comparison.h (*::has_changes): Rename the ::length()
method of all the diff types that inherit the diff class into
this, in the class declarations.
* src/abg-comparison.cc (*::has_changes): Do the same as in the
declarations, in the definitions.
(diff::to_be_reported, distinct_diff::has_local_changes)
(distinct_diff::report, distinct_diff::, array_diff::has_changes)
(reference_diff::has_changes, qualified_type_diff::has_changes)
(enum_diff::has_changes, translation_unit_diff::has_changes)
(suppression_categorization_visitor::visit_end)
(redundancy_marking_visitor::visit_begin): Adjust.
* tests/test-diff-dwarf.cc (main): Adjust.
* tools/abidiff.cc (main): Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-comparison.h
src/abg-comparison.cc
tests/test-diff-dwarf.cc
tools/abidiff.cc
This page took 0.036391 seconds and 5 git commands to generate.