const shared_ptr<decl_base>
lookup_type_in_scope(const string&,
- const shared_ptr<scope_decl>);
+ const shared_ptr<scope_decl>&);
const shared_ptr<decl_base>
lookup_type_in_scope(const std::list<string>&,
- const shared_ptr<scope_decl>);
+ const shared_ptr<scope_decl>&);
const shared_ptr<decl_base>
lookup_var_decl_in_scope(const string&,
- const shared_ptr<scope_decl>);
+ const shared_ptr<scope_decl>&);
const shared_ptr<decl_base>
lookup_var_decl_in_scope(const std::list<string>&,
- const shared_ptr<scope_decl>);
+ const shared_ptr<scope_decl>&);
string
demangle_cplus_mangled_name(const string&);
/// @return the declaration of the type if found, NULL otherwise.
const decl_base_sptr
lookup_type_in_scope(const string& fqn,
- const scope_decl_sptr skope)
+ const scope_decl_sptr& skope)
{
list<string> comps;
fqn_to_components(fqn, comps);
/// otherwise.
const decl_base_sptr
lookup_var_decl_in_scope(const string& fqn,
- const scope_decl_sptr skope)
+ const scope_decl_sptr& skope)
{
list<string> comps;
fqn_to_components(fqn, comps);
/// @return the declaration of the type found.
const decl_base_sptr
lookup_type_in_scope(const list<string>& comps,
- const scope_decl_sptr scope)
+ const scope_decl_sptr& scope)
{return lookup_node_in_scope<type_base>(comps, scope);}
/// lookup a type in a scope.
/// @param skope the scope to look into.
const decl_base_sptr
lookup_var_decl_in_scope(const std::list<string>& comps,
- const scope_decl_sptr skope)
+ const scope_decl_sptr& skope)
{return lookup_node_in_scope<var_decl>(comps, skope);}
/// Lookup an IR node from a translation unit.