Lines Matching refs:declarator

1295 	 bearing on this declarator.  */
3666 /* Make sure that a declaration with no declarator is well-formed, i.e.
3707 /* 7/3 In a simple-declaration, the optional init-declarator-list
3798 because there is no declarator after the union, the parser
3806 tree decl = grokdeclarator (/*declarator=*/NULL,
3820 const cp_declarator *declarator)
3827 decl = grokdeclarator (declarator, type_specifiers, BLOCKDEF, 0, &attrs);
3838 const cp_declarator *declarator)
3844 type = grokdeclarator (declarator, type_specifiers, TYPENAME, 0, &attrs);
3850 /* Decode a declarator in an ordinary declaration or data definition.
3866 start_decl (const cp_declarator *declarator,
3913 decl = grokdeclarator (declarator, declspecs, NORMAL, initialized,
6489 tree declarator,
6513 decl = build_lang_decl (FUNCTION_DECL, declarator, type);
6602 if ((MAIN_NAME_P (declarator)
6603 || (IDENTIFIER_LENGTH (declarator) > 10
6604 && IDENTIFIER_POINTER (declarator)[0] == '_'
6605 && IDENTIFIER_POINTER (declarator)[1] == '_'
6606 && strncmp (IDENTIFIER_POINTER (declarator)+2, "builtin_", 8) == 0))
7230 get_scope_of_declarator (const cp_declarator *declarator)
7232 while (declarator && declarator->kind != cdk_id)
7233 declarator = declarator->declarator;
7235 /* If the declarator-id is a SCOPE_REF, the scope in which the
7237 if (declarator
7238 && declarator->u.id.qualifying_scope)
7239 return declarator->u.id.qualifying_scope;
7241 /* Otherwise, the declarator is not a qualified name; the entity will
7404 /* Given declspecs and a declarator (abstract or otherwise), determine
7431 the declarator should be applied to the declaration.
7443 Returns a DECL (if a declarator is present), a TYPE (if there is no
7444 declarator, in cases like "struct S;"), or the ERROR_MARK_NODE if an
7448 grokdeclarator (const cp_declarator *declarator,
7465 /* True if this declarator is a function definition. */
7482 /* cv-qualifiers that apply to the declarator, for a declaration of
7492 /* The unqualified name of the declarator; either an
7523 /* Look inside a declarator for the name being declared
7525 for (id_declarator = declarator;
7527 id_declarator = id_declarator->declarator)
7535 if (id_declarator->declarator
7536 && id_declarator->declarator->kind == cdk_id)
7538 sfk = id_declarator->declarator->u.id.sfk;
7556 A declarator-id shall not be qualified except
7631 error ("declarator-id missing; using reserved word %qD",
7676 The declarator in a function-definition shall have the form
7985 error ("%<%T::%D%> is not a valid declarator", ctype, dependent_name);
8123 declarator. */
8124 for (; declarator; declarator = declarator->declarator)
8132 attrs = declarator->attributes;
8138 if (declarator == NULL || declarator->kind == cdk_id)
8140 if (declarator->kind == cdk_function)
8142 if (declarator->kind == cdk_array)
8149 if (declarator->kind == cdk_id)
8152 inner_declarator = declarator->declarator;
8154 switch (declarator->kind)
8158 declarator->u.array.bounds);
8187 memfn_quals = declarator->u.function.qualifiers;
8190 raises = declarator->u.function.exception_specification;
8205 /* We are within a class's scope. If our declarator name
8270 arg_types = grokparms (declarator->u.function.parameters,
8295 error (declarator->kind == cdk_reference
8302 if (declarator->kind == cdk_reference)
8304 else if (declarator->kind == cdk_ptrmem)
8312 if (declarator->kind == cdk_ptrmem
8317 declarator->u.pointer.class_type,
8322 if (declarator->kind == cdk_reference)
8329 else if (declarator->kind == cdk_ptrmem)
8331 gcc_assert (TREE_CODE (declarator->u.pointer.class_type)
8333 if (declarator->u.pointer.class_type == error_mark_node)
8337 type = build_ptrmem_type (declarator->u.pointer.class_type,
8346 if (declarator->u.pointer.qualifiers)
8350 declarator->u.pointer.qualifiers);
8371 if (declarator->u.pointer.qualifiers)
8375 declarator->u.pointer.qualifiers);
8395 error ("template-id %qD used as a declarator",
8405 is non-NULL, we know it is a cdk_id declarator; otherwise, we
8407 if (declarator
8408 && declarator->u.id.qualifying_scope
8409 && TYPE_P (declarator->u.id.qualifying_scope))
8413 ctype = declarator->u.id.qualifying_scope;
8473 tree sname = declarator->u.id.unqualified_name;
8632 if (id_declarator && declarator->u.id.qualifying_scope)
8823 error ("abstract declarator %qT used as declaration", type);
9096 4 A member-declarator can contain a
9481 decl = grokdeclarator (parm->declarator, &parm->decl_specifiers,
11168 /* Save the parm names or decls from this function's declarator
11491 const cp_declarator *declarator,
11496 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, 1, &attrs);
11497 /* If the declarator is not suitable for a function definition,
12067 const cp_declarator *declarator, tree attrlist)
12069 tree fndecl = grokdeclarator (declarator, declspecs, MEMFUNCDEF, 0,