mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-06 06:37:31 +00:00
Cleanup header of changes of underlying types of pointers/references
* src/abg-comparison.cc ({pointer_diff, reference_diff}::report): Unify header of changes in the referenced type. * src/abg-ir.cc (decl_base::get_pretty_representation): By default, do not prefix types with "type ", for consistency sake. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
76a6b8b5bc
commit
f2a44cebe1
@ -390,8 +390,8 @@ pointer_diff::report(ostream& out, const string& indent) const
|
||||
|
||||
if (diff_sptr d = underlying_type_diff())
|
||||
{
|
||||
out << indent << "differences in pointed to type ("
|
||||
<< d->first_subject()->get_pretty_representation() << "):\n";
|
||||
out << indent << "in pointed to type '"
|
||||
<< d->first_subject()->get_pretty_representation() << "':\n";
|
||||
d->report(out, indent + " ");
|
||||
}
|
||||
}
|
||||
@ -484,8 +484,8 @@ reference_diff::report(ostream& out, const string& indent) const
|
||||
|
||||
if (diff_sptr d = underlying_type_diff())
|
||||
{
|
||||
out << indent << "differences in referenced type ("
|
||||
<< d->first_subject()->get_pretty_representation() << "):\n";
|
||||
out << indent << "in referenced type '"
|
||||
<< d->first_subject()->get_pretty_representation() << "':\n";
|
||||
d->report(out, indent + " ");
|
||||
}
|
||||
}
|
||||
|
@ -275,14 +275,7 @@ decl_base::get_qualified_name(string& qn,
|
||||
/// with a meaningful string to add context for the user.
|
||||
string
|
||||
decl_base::get_pretty_representation() const
|
||||
{
|
||||
string result;
|
||||
|
||||
if (dynamic_cast<const type_base*>(this))
|
||||
result += "type ";
|
||||
result += get_qualified_name();
|
||||
return result;
|
||||
}
|
||||
{return get_qualified_name();}
|
||||
|
||||
/// Compute the qualified name of the decl.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user