Misc style fixes

* src/abg-hash.cc
	(class_decl::member_function_template:#️⃣:operator()): Remove
	useless vertical space.
	* src/abg-ir.cc (class_decl::class_decl): Properly indent.
	* src/abg-writer.cc (fn_tmpl_shared_ptr_map)
	(class_tmpl_shared_ptr_map): Properly indent these typedefs.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-01-13 17:11:14 +01:00
parent 1377f9fb48
commit 69380c1aa0
3 changed files with 9 additions and 10 deletions

View File

@ -458,7 +458,6 @@ struct class_decl::member_function_template::hash
v = hashing::combine_hashes(v, hash_function_tdecl(t));
v = hashing::combine_hashes(v, hash_bool(t.is_constructor()));
v = hashing::combine_hashes(v, hash_bool(t.is_const()));
return v;
}
};

View File

@ -2238,13 +2238,13 @@ class_decl::class_decl(const std::string& name, size_t size_in_bits,
member_functions& mbr_fns)
: decl_base(name, locus, name, vis),
type_base(size_in_bits, align_in_bits),
scope_type_decl(name, size_in_bits, align_in_bits, locus, vis),
hashing_started_(false),
is_declaration_only_(false),
bases_(bases),
member_types_(mbrs),
data_members_(data_mbrs),
member_functions_(mbr_fns)
scope_type_decl(name, size_in_bits, align_in_bits, locus, vis),
hashing_started_(false),
is_declaration_only_(false),
bases_(bases),
member_types_(mbrs),
data_members_(data_mbrs),
member_functions_(mbr_fns)
{
for (member_types::iterator i = mbrs.begin(); i != mbrs.end(); ++i)
if (!(*i)->get_scope())

View File

@ -99,11 +99,11 @@ typedef unordered_map<type_base*,
typedef unordered_map<shared_ptr<function_tdecl>,
string,
function_tdecl::shared_ptr_hash> fn_tmpl_shared_ptr_map;
function_tdecl::shared_ptr_hash> fn_tmpl_shared_ptr_map;
typedef unordered_map<shared_ptr<class_tdecl>,
string,
class_tdecl::shared_ptr_hash> class_tmpl_shared_ptr_map;
class_tdecl::shared_ptr_hash> class_tmpl_shared_ptr_map;
class write_context
{