]> sourceware.org Git - libabigail.git/commitdiff
Show the pretty representation of deleted variables in the diff output
authorDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 11:44:58 +0000 (12:44 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 18:57:05 +0000 (19:57 +0100)
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 <dodji@redhat.com>
src/abg-comparison.cc

index 615428bf55b2ff6cfa3b830587b929ef9f22019f..914bdb04d3efc61b7cb8c7ec49878d8c10e434c6 100644 (file)
@@ -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)
This page took 0.05146 seconds and 5 git commands to generate.