]> sourceware.org Git - libabigail.git/commit
Fix the output of the array diff report
authorDodji Seketeli <dodji@redhat.com>
Mon, 19 Jan 2015 13:44:56 +0000 (14:44 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 19 Jan 2015 14:00:44 +0000 (15:00 +0100)
commitaf0923b1b03acf940a8f0e2a63eb7ffd45ff060b
tree8429876e8c5257a72075e8a50ad942f8ff55fe12
parent63c81f028d6ab83105d6b01069372891f2a3e022
Fix the output of the array diff report

While working on something else, I realized the report of the array
diff change wasn't referring to the pretty representation of the array
when talking about the changes of array element type; rather it was
just referring to the array name.  I think referring to the pretty
representation of the array is more helpful.  This patch does just
that.

* src/abg-comparison.cc (array_diff::report): Refer to the pretty
representation of the array when talking about changes of the
array element type.
* src/abg-ir.cc (equals): In the overload for array_type, use the
equality operator that knows how to handle null pointers to
element type.  This avoids crashes when the pointer to element
type is null.
* tests/data/test-diff-dwarf/test10-report.txt: Adjust.
* tests/data/test-diff-filter/test24-compatible-vars-report-1.txt:
Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-comparison.cc
src/abg-ir.cc
tests/data/test-diff-dwarf/test10-report.txt
tests/data/test-diff-filter/test24-compatible-vars-report-1.txt
This page took 0.034228 seconds and 5 git commands to generate.