Various style cleanups

* src/abg-hash.cc (class_decl:#️⃣:operator()(const class_decl&
	t) const): Fix comment.
	* src/abg-ir.cc (lookup_node_in_scope): Likewise.
	(class_decl::add_base_specifier): Use base_spec_sptr rather than
	shared_ptr<base_spec>.
	(class non_canonicalized_subtype_detector): Fix comment.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-03-17 12:02:33 +01:00
parent f9ec2f1555
commit f2be212736
2 changed files with 5 additions and 5 deletions

View File

@ -640,7 +640,7 @@ class_decl::hash::operator()(const class_decl& t) const
++d)
v = hashing::combine_hashes(v, hash_data_member(**d));
// Hash member_function
// Hash virtual member_functions
for (class_decl::member_functions::const_iterator f =
t.get_member_functions().begin();
f != t.get_member_functions().end();

View File

@ -3640,8 +3640,8 @@ convert_node_to_decl(var_decl_sptr node)
///
/// @param skope the scope to look into.
///
/// @return the declaration of the lookuped node, or NULL if it wasn't
/// found.
/// @return the declaration of the looked up node, or NULL if it
/// wasn't found.
template<typename NodeKind>
static const decl_base_sptr
lookup_node_in_scope(const list<string>& fqn,
@ -7720,7 +7720,7 @@ class_decl::get_earlier_declaration() const
///
/// @param b the new base specifier.
void
class_decl::add_base_specifier(shared_ptr<base_spec> b)
class_decl::add_base_specifier(base_spec_sptr b)
{priv_->bases_.push_back(b);}
/// Get the base specifiers for this class.
@ -9830,7 +9830,7 @@ public:
return false;
return true;
}
}; //end struct sub_type_visitor
}; //end class non_canonicalized_subtype_detector
/// Test if a type has sub-types that are non-canonicalized.
///