From 3299e63da08c7b0952fcdb062ccff397901fcae2 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Wed, 16 Apr 2014 10:53:14 +0200 Subject: [PATCH] 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 --- src/abg-ir.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 35cc7490..2b72e10b 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -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; }