Lines Matching defs:init

607      in a for-init statement were in scope after the for-statement
2505 /* Can't skip init of __exception_info. */
3332 filled in with the type of the init. */
3339 tree init = NULL_TREE;
3346 init = build_string (length + 1, name);
3354 if (init)
3355 TREE_TYPE (init) = type;
3357 init = error_mark_node;
3359 return init;
3374 tree init = cp_fname_init (name, &type);
3396 cp_finish_decl (decl, init, /*init_const_expr_p=*/false, NULL_TREE,
3400 pushdecl_top_level_and_finish (decl, init);
3707 /* 7/3 In a simple-declaration, the optional init-declarator-list
4175 grok_reference_init (tree decl, tree type, tree init, tree *cleanup)
4179 if (init == NULL_TREE)
4188 if (TREE_CODE (init) == CONSTRUCTOR)
4195 if (TREE_CODE (init) == TREE_LIST)
4196 init = build_x_compound_expr_from_list (init, "initializer");
4199 && TREE_CODE (TREE_TYPE (init)) == ARRAY_TYPE)
4201 init = decay_conversion (init);
4210 tmp = initialize_reference (type, init, decl, cleanup);
4216 error ("cannot initialize %qT from %qT", type, TREE_TYPE (init));
4257 maybe_deduce_size_from_array_init (tree decl, tree init)
4268 tree initializer = init ? init : DECL_INITIAL (decl);
4604 /* [dcl.init.aggr]
4643 /* [dcl.init.aggr]
4666 tree init = d->cur->value;
4677 if (TREE_CODE (init) == CONSTRUCTOR
4678 && BRACE_ENCLOSED_INITIALIZER_P (init)) /* p7626.C */
4681 init = error_mark_node;
4685 return init;
4688 /* [dcl.init.aggr]
4697 if (TREE_CODE (init) != CONSTRUCTOR
4698 && can_convert_arg (type, TREE_TYPE (init), init, LOOKUP_NORMAL))
4701 return init;
4704 /* [dcl.init.string]
4713 tree str_init = init;
4716 element (as allowed by [dcl.init.string]). */
4741 if (TREE_CODE (init) == CONSTRUCTOR)
4743 if (TREE_TYPE (init) && TYPE_PTRMEMFUNC_P (TREE_TYPE (init)))
4748 else if (COMPOUND_LITERAL_P (init))
4754 gcc_assert (!BRACE_ENCLOSED_INITIALIZER_P (init));
4758 gcc_assert (BRACE_ENCLOSED_INITIALIZER_P (init));
4759 return reshape_init (type, init);
4778 /* Undo the brace-elision allowed by [dcl.init.aggr] in a
4794 reshape_init (tree type, tree init)
4800 gcc_assert (BRACE_ENCLOSED_INITIALIZER_P (init));
4802 v = CONSTRUCTOR_ELTS (init);
4807 return init;
4833 check_initializer (tree decl, tree init, int flags, tree *cleanup)
4859 if (init
4878 && init && BRACE_ENCLOSED_INITIALIZER_P (init)
4879 && VEC_length (constructor_elt, CONSTRUCTOR_ELTS (init)) != 1)
4890 DECL_INITIAL (decl) = init;
4892 gcc_assert (init != NULL_TREE);
4893 init = NULL_TREE;
4896 init = grok_reference_init (decl, type, init, cleanup);
4897 else if (init)
4901 if (TREE_CODE (init) == CONSTRUCTOR
4902 && !COMPOUND_LITERAL_P (init)
4903 && !TREE_TYPE (init)) /* ptrmemfunc */
4905 init = reshape_init (type, init);
4910 init = error_mark_node;
4916 maybe_deduce_size_from_array_init (decl, init);
4925 else if (TREE_CODE (init) == CONSTRUCTOR)
4932 init = error_mark_node;
4948 init = build_aggr_init (decl, init, flags);
4952 return init;
4958 if (TREE_CODE (init) != TREE_VEC)
4960 init_code = store_init_value (decl, init);
4967 init = NULL;
4989 if (init && init != error_mark_node)
4990 init_code = build2 (INIT_EXPR, type, decl, init);
4998 make_rtl_for_nonlocal_decl (tree decl, tree init, const char* asmspec)
5042 if (init == NULL_TREE && TREE_PUBLIC (decl))
5091 initialize_local_var (tree decl, tree init)
5115 if (init)
5122 finish_expr_stmt (init);
5155 initialize_artificial_var (tree decl, tree init)
5158 if (TREE_CODE (init) == TREE_LIST)
5159 init = build_constructor_from_list (NULL_TREE, init);
5160 gcc_assert (TREE_CODE (init) == CONSTRUCTOR);
5161 DECL_INITIAL (decl) = init;
5166 make_rtl_for_nonlocal_decl (decl, init, /*asmspec=*/NULL);
5173 value_dependent_init_p (tree init)
5175 if (TREE_CODE (init) == TREE_LIST)
5177 return any_value_dependent_elements_p (init);
5178 else if (TREE_CODE (init) == CONSTRUCTOR)
5185 elts = CONSTRUCTOR_ELTS (init);
5194 return value_dependent_expression_p (init);
5462 init_byref_decl (tree decl, tree init, int flag)
5550 if (init)
5552 init = digest_init (TREE_TYPE (fields), init);
5553 initlist = tree_cons (fields, init, initlist);
5555 init = build_constructor_from_list (block_byref_type, nreverse (initlist));
5556 return init;
5568 FLAGS is LOOKUP_ONLYCONVERTING if the = init syntax was used, else 0
5569 if the (init) syntax was used. */
5572 cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
5586 if (init)
5612 && (DECL_INITIAL (decl) || init))
5625 if (init && init_const_expr_p)
5637 if (!(init
5641 && !value_dependent_init_p (init)))
5643 if (init)
5644 DECL_INITIAL (decl) = init;
5648 maybe_deduce_size_from_array_init (decl, init);
5652 init = fold_non_dependent_expr (init);
5724 && (!DECL_EXTERNAL (decl) || init))
5726 if (init)
5736 init = check_initializer (decl, init, flags, &cleanup);
5738 if (DECL_THREAD_LOCAL_P (decl) && init)
5742 init = NULL_TREE;
5756 if (DECL_EXTERNAL (decl) && init)
5761 init = NULL_TREE;
5766 [dcl.init]
5815 make_rtl_for_nonlocal_decl (decl, init, asmspec);
5837 if (init)
5838 DECL_INITIAL (decl) = init;
5847 DECL_INITIAL (decl) = init;
5849 initialize_local_var (decl, init);
5865 if (init)
5871 expand_static_init (decl, init);
5895 finish_decl (tree decl, tree init, tree asmspec_tree)
5897 cp_finish_decl (decl, init, /*init_const_expr_p=*/false, asmspec_tree, 0);
6160 expand_static_init (tree decl, tree init)
6166 if (!init
6172 if (c_dialect_objc () && flag_objc_gc && init && TREE_CODE (init) == INIT_EXPR)
6174 tree result = objc_generate_write_barrier (TREE_OPERAND (init, 0),
6175 INIT_EXPR, TREE_OPERAND (init, 1));
6177 init = result;
6274 init = add_stmt_to_compound (begin, init);
6275 init = add_stmt_to_compound
6276 (init, build2 (MODIFY_EXPR, void_type_node, flag, boolean_true_node));
6277 init = add_stmt_to_compound
6278 (init, build_call (release_fn, guard_addr_list));
6281 init = add_stmt_to_compound (init, set_guard (guard));
6285 init = add_stmt_to_compound (init, register_dtor_fn (decl));
6287 finish_expr_stmt (init);
6304 static_aggregates = tree_cons (init, decl, static_aggregates);
9472 tree init = parm->default_argument;
9482 PARM, init != NULL_TREE, &attrs);
9542 init = NULL_TREE;
9543 else if (init && !processing_template_decl)
9544 init = check_default_argument (decl, init);
9549 result = tree_cons (init, type, result);