From 059bb2fbfdaa85e11eacc37cae54264bcafb2024 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Sat, 19 Oct 2013 16:01:59 +0200 Subject: [PATCH] Misc style & white space fixes * include/abg-fwd.h (is_global_scope, is_at_global_scope) (is_at_class_scope, is_at_template_scope, is_template_parameter) (is_type, is_var_decl, is_template_parm_composition_type) (is_template_decl, is_function_template_pattern) (add_decl_to_scope, get_global_scope, get_translation_unit): Remove parameter names from declarations. * include/abg-ir.h (decl_base::set_location): Remove useless white space. (struct type_shared_ptr_equal): Fix comment filling. Signed-off-by: Dodji Seketeli --- include/abg-fwd.h | 32 ++++++++++++++++---------------- include/abg-ir.h | 6 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/abg-fwd.h b/include/abg-fwd.h index d0d1ccb4..373e8f38 100644 --- a/include/abg-fwd.h +++ b/include/abg-fwd.h @@ -118,49 +118,49 @@ translation_unit* get_translation_unit(const shared_ptr); bool -is_global_scope(const scope_decl* scpe); +is_global_scope(const scope_decl*); bool -is_global_scope(const shared_ptr scpe); +is_global_scope(const shared_ptr); bool -is_at_global_scope(const shared_ptr dcl); +is_at_global_scope(const shared_ptr); bool -is_at_class_scope(const shared_ptr dcl); +is_at_class_scope(const shared_ptr); bool -is_at_template_scope(const shared_ptr dcl); +is_at_template_scope(const shared_ptr); bool -is_template_parameter(const shared_ptr dcl); +is_template_parameter(const shared_ptr); bool -is_type(const shared_ptr decl); +is_type(const shared_ptr); bool -is_var_decl(const shared_ptr decl); +is_var_decl(const shared_ptr); bool -is_template_parm_composition_type(const shared_ptr dcl); +is_template_parm_composition_type(const shared_ptr); bool -is_template_decl(const shared_ptr dcl); +is_template_decl(const shared_ptr); bool -is_function_template_pattern(const shared_ptr dcl); +is_function_template_pattern(const shared_ptr); void -add_decl_to_scope(shared_ptr dcl, scope_decl* scpe); +add_decl_to_scope(shared_ptr, scope_decl*); void -add_decl_to_scope(shared_ptr dcl, shared_ptr scpe); +add_decl_to_scope(shared_ptr, shared_ptr); global_scope* -get_global_scope(const shared_ptr dcl); +get_global_scope(const shared_ptr); translation_unit* -get_translation_unit(const shared_ptr dcl); +get_translation_unit(const shared_ptr); void dump(const shared_ptr); @@ -169,7 +169,7 @@ void dump(const shared_ptr); void -dump(const shared_ptr v); +dump(const shared_ptr); void dump(const translation_unit&); diff --git a/include/abg-ir.h b/include/abg-ir.h index c24666c0..0351e64d 100644 --- a/include/abg-ir.h +++ b/include/abg-ir.h @@ -218,7 +218,7 @@ public: void set_location(const location& l) - { location_ = l; } + {location_ = l;} const string& get_name() const @@ -386,8 +386,8 @@ public: get_alignment_in_bits() const; };//end class type_base - -/// A predicate for deep equality of instances of shared_ptr +/// A predicate for deep equality of instances of +/// shared_ptr struct type_shared_ptr_equal { bool