]> sourceware.org Git - libabigail.git/commit
Sort the output of the leaf reporter
authorDodji Seketeli <dodji@redhat.com>
Mon, 14 May 2018 08:02:56 +0000 (10:02 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 14 May 2018 08:02:56 +0000 (10:02 +0200)
commit277100a15c1e3dd6fd9f0e7367432608c22f34fe
tree2d78d57ede3e3bc0aa575bb07cadf459618004d8
parentd053ff708ef4711d5294b273d3bd60ffe48370b1
Sort the output of the leaf reporter

It turned out we were not sorting the output of the leaf report.  This
patch fixes that.

* include/abg-comparison.h (diff_ptrs_type): Define new typedef.
* src/abg-comparison-priv.h (sort_string_diff_ptr_map): Declare
new function.
* src/abg-comparison.cc (sort_string_diff_sptr_map): Update
comment.
(sort_string_diff_ptr_map): Define new function.
* src/abg-leaf-reporter.cc (report_diffs): Sort the diff nodes
before reporting about them.
* tests/data/test-diff-suppr/test36-leaf-report-0.txt: Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-comparison.h
src/abg-comparison-priv.h
src/abg-comparison.cc
src/abg-leaf-reporter.cc
tests/data/test-diff-suppr/test36-leaf-report-0.txt
This page took 0.03307 seconds and 5 git commands to generate.