FreeBSD/contrib/gcc/cp/name-lookup.c
/* Same as pushdecl, but define X in binding-level LEVEL.  We rely on the
   caller to set DECL_CONTEXT properly.  */
Same as pushdecl, but define X in binding-level LEVEL.  We rely on the
caller to set DECL_CONTEXT properly.
Same as pushdecl but define X in binding - level LEVEL . We rely on the caller to set DECL_CONTEXT properly .
tree
pushdecl_with_scope (tree x, cxx_scope *level, bool is_friend)
{
  struct cp_binding_level *b;
  tree function_decl = current_function_decl;
  timevar_push (TV_NAME_LOOKUP);
  current_function_decl = NULL_TREE;
  if (level->kind == sk_class)
    {
      b = class_binding_level;
      class_binding_level = level;
      pushdecl_class_level (x);
      class_binding_level = b;
    }
  else
    {
      b = current_binding_level;
      current_binding_level = level;
      x = pushdecl_maybe_friend (x, is_friend);
      current_binding_level = b;
    }
  current_function_decl = function_decl;
  POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, x);
}
tree pushdecl_with_scope ( tree x , cxx_scope * level , bool is_friend ) { struct cp_binding_level * b ; tree function_decl = current_function_decl ; timevar_push ( TV_NAME_LOOKUP ) ; current_function_decl = NULL_TREE ; if ( level -> kind == sk_class ) { b = class_binding_level ; class_binding_level = level ; pushdecl_class_level ( x ) ; class_binding_level = b ; } else { b = current_binding_level ; current_binding_level = level ; x = pushdecl_maybe_friend ( x , is_friend ) ; current_binding_level = b ; } current_function_decl = function_decl ; POP_TIMEVAR_AND_RETURN ( TV_NAME_LOOKUP , x ) ; }
Same as pushdecl, but define X in binding-level LEVEL.
Same as pushdecl but define X in binding - level LEVEL .