From f2be21273623fbb2834d57f8605202a0c7bc1894 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 17 Mar 2015 12:02:33 +0100 Subject: [PATCH] Various style cleanups * src/abg-hash.cc (class_decl::hash::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. (class non_canonicalized_subtype_detector): Fix comment. Signed-off-by: Dodji Seketeli --- src/abg-hash.cc | 2 +- src/abg-ir.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/abg-hash.cc b/src/abg-hash.cc index d4870b81..4b7231d6 100644 --- a/src/abg-hash.cc +++ b/src/abg-hash.cc @@ -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(); diff --git a/src/abg-ir.cc b/src/abg-ir.cc index e6b51315..dca000c4 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -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 static const decl_base_sptr lookup_node_in_scope(const list& 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 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. ///