Prefix pretty representation of static data members with 'static'

* src/abg-ir.cc (var_decl::get_pretty_representation): Prefix
	pretty representation of static data members with 'static'.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-04-16 10:53:14 +02:00
parent 3ae24bafc3
commit 3299e63da0

View File

@ -3063,7 +3063,9 @@ var_decl::get_pretty_representation() const
{
string result;
result = get_type_declaration(get_type())->get_qualified_name();
if (is_member_decl(this) && get_member_is_static(this))
result = "static ";
result += get_type_declaration(get_type())->get_qualified_name();
result += " " + get_qualified_name();
return result;
}