Misc style fixes

* include/abg-ir.h (decl_base::set_visibility): Remove useless
	white space.
	(class scope_decl): Remove useless white space.
	(scope_decl::add_member_decl): Use decl_base_sptr convenience
	typedef.
	(global_scope_sptr, namespace_decl_sptr): New convenience typedef.
	(class global_scope): Remove useless white space.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2013-12-12 15:27:42 +01:00
parent 8323ffbfad
commit faa9ae485c

View File

@ -260,7 +260,7 @@ public:
void
set_visibility(visibility v)
{ visibility_ = v; }
{visibility_ = v;}
friend void
add_decl_to_scope(shared_ptr<decl_base> dcl, scope_decl* scpe);
@ -298,7 +298,7 @@ private:
protected:
virtual void
add_member_decl(const shared_ptr<decl_base> member);
add_member_decl(const decl_base_sptr member);
public:
scope_decl(const std::string& name, location locus,
@ -306,7 +306,6 @@ public:
: decl_base(name, locus, /*mangled_name=*/name, vis)
{}
scope_decl(location l) : decl_base("", l)
{}
@ -334,6 +333,8 @@ public:
add_decl_to_scope(shared_ptr<decl_base> dcl, scope_decl* scpe);
};//end class scope_decl
/// Convenience typedef for shared pointer on @ref global_scope.
typedef shared_ptr<global_scope> global_scope_sptr;
/// This abstracts the global scope of a given translation unit.
///
@ -484,6 +485,9 @@ public:
virtual ~scope_type_decl();
};
/// Convenience typedef for a shared pointer on namespace_decl.
typedef shared_ptr<namespace_decl> namespace_decl_sptr;
/// The abstraction of a namespace declaration
class namespace_decl : public scope_decl
{