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:
Dodji Seketeli 2013-11-25 23:11:05 +01:00
parent 76a6b8b5bc
commit f2a44cebe1
2 changed files with 5 additions and 12 deletions

View File

@ -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 + " ");
}
}

View File

@ -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.
///