From 0b5edf13d78f3e62d184112742e2154df7cd2993 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Sun, 30 Nov 2014 12:44:58 +0100 Subject: [PATCH] Show the pretty representation of deleted variables in the diff output While working on the 'abicompat' tool, it appeared that only the names of deleted variables where printed in the diff report; what we want is the full pretty representation of the variables, that is, we want their type too. This patch changes the reporting code of the corpus_diff to show the full pretty representation of deleted variables. * src/abg-comparison.cc (corpus_diff::report): Show the pretty representation of deleted variables in all cases. Signed-off-by: Dodji Seketeli --- src/abg-comparison.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/abg-comparison.cc b/src/abg-comparison.cc index 615428bf..914bdb04 100644 --- a/src/abg-comparison.cc +++ b/src/abg-comparison.cc @@ -10260,10 +10260,7 @@ corpus_diff::report(ostream& out, const string& indent) const i != priv_->deleted_vars_.end(); ++i) { - if (!i->second->get_linkage_name().empty()) - n = demangle_cplus_mangled_name(i->second->get_linkage_name()); - else - n = i->second->get_pretty_representation(); + n = i->second->get_pretty_representation(); out << indent << " "; if (total > large_num) -- 2.43.5