FreeBSD/contrib/gcc/cp/name-lookup.c
/* Process a using-directive.  */
Process a using-directive.
Process a using - directive .
void
do_using_directive (tree namespace)
{
  tree context = NULL_TREE;
  if (namespace == error_mark_node)
    return;
  gcc_assert (TREE_CODE (namespace) == NAMESPACE_DECL);
  if (building_stmt_tree ())
    add_stmt (build_stmt (USING_STMT, namespace));
  namespace = ORIGINAL_NAMESPACE (namespace);
  if (!toplevel_bindings_p ())
    {
      push_using_directive (namespace);
      context = current_scope ();
    }
  else
    {
      add_using_namespace (current_namespace, namespace, 0);
      if (current_namespace != global_namespace)
	context = current_namespace;
    }
  if (!processing_template_decl)
    (*debug_hooks->imported_module_or_decl) (namespace, context);
}
void do_using_directive ( tree namespace ) { tree context = NULL_TREE ; if ( namespace == error_mark_node ) return ; gcc_assert ( TREE_CODE ( namespace ) == NAMESPACE_DECL ) ; if ( building_stmt_tree ( ) ) add_stmt ( build_stmt ( USING_STMT , namespace ) ) ; namespace = ORIGINAL_NAMESPACE ( namespace ) ; if ( ! toplevel_bindings_p ( ) ) { push_using_directive ( namespace ) ; context = current_scope ( ) ; } else { add_using_namespace ( current_namespace , namespace , 0 ) ; if ( current_namespace != global_namespace ) context = current_namespace ; } if ( ! processing_template_decl ) ( * debug_hooks -> imported_module_or_decl ) ( namespace , context ) ; }
Process a using-directive.
Process a using - directive .
/* direct usage */ /* Emit debugging info.  */