mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-07 15:17:39 +00:00
Emit statistics about resolved class declarations
This patch makes abidw --stats emit statitics about class declarations that got resolved, and those that we missed. * src/abg-dwarf-reader.cc (read_context::resolve_declaration_only_classes): Emit statistics about resolved classes and the missed ones. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
143263c446
commit
f381a13d38
@ -2397,10 +2397,33 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (vector<string>::iterator i = resolved_classes.begin();
|
size_t num_decl_only_classes = declaration_only_classes().size(),
|
||||||
|
num_resolved = resolved_classes.size();
|
||||||
|
if (show_stats())
|
||||||
|
cerr << "resolved " << num_resolved
|
||||||
|
<< " class declarations out of "
|
||||||
|
<< num_decl_only_classes
|
||||||
|
<< "\n";
|
||||||
|
|
||||||
|
for (vector<string>::const_iterator i = resolved_classes.begin();
|
||||||
i != resolved_classes.end();
|
i != resolved_classes.end();
|
||||||
++i)
|
++i)
|
||||||
declaration_only_classes().erase(*i);
|
declaration_only_classes().erase(*i);
|
||||||
|
|
||||||
|
for (string_classes_map::iterator i = declaration_only_classes().begin();
|
||||||
|
i != declaration_only_classes().end();
|
||||||
|
++i)
|
||||||
|
{
|
||||||
|
if (show_stats())
|
||||||
|
{
|
||||||
|
if (i == declaration_only_classes().begin())
|
||||||
|
cerr << "Here are the "
|
||||||
|
<< num_decl_only_classes - num_resolved
|
||||||
|
<< " unresolved class declarations:\n";
|
||||||
|
else
|
||||||
|
cerr << " " << i->first << "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a reference to the vector containing the offsets of the
|
/// Return a reference to the vector containing the offsets of the
|
||||||
|
Loading…
Reference in New Issue
Block a user