FreeBSD/contrib/gcc/cp/name-lookup.c
/* Return the namespace where the current declaration is declared.  */
Return the namespace where the current declaration is declared.
Return the namespace where the current declaration is declared .
static tree
current_decl_namespace (void)
{
  tree result;
  if (decl_namespace_list)
    return TREE_PURPOSE (decl_namespace_list);
  if (current_class_type)
    result = decl_namespace_context (current_class_type);
  else if (current_function_decl)
    result = decl_namespace_context (current_function_decl);
  else
    result = current_namespace;
  return result;
}
static tree current_decl_namespace ( void ) { tree result ; if ( decl_namespace_list ) return TREE_PURPOSE ( decl_namespace_list ) ; if ( current_class_type ) result = decl_namespace_context ( current_class_type ) ; else if ( current_function_decl ) result = decl_namespace_context ( current_function_decl ) ; else result = current_namespace ; return result ; }
Return the namespace where the current declaration is declared.
Return the namespace where the current declaration is declared .
/* If we have been pushed into a different namespace, use it.  */