Home
last modified time | relevance | path

Searched refs:declarator (Results 1 – 25 of 88) sorted by relevance

1234

/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Dfriend.c314 do_friend (ctype, declarator, decl, parmdecls, attrlist, in do_friend() argument
316 tree ctype, declarator, decl, parmdecls, attrlist; in do_friend()
326 if (TREE_CODE (declarator) == TEMPLATE_ID_EXPR)
328 declarator = TREE_OPERAND (declarator, 0);
329 if (TREE_CODE (declarator) == LOOKUP_EXPR)
330 declarator = TREE_OPERAND (declarator, 0);
331 if (is_overloaded_fn (declarator))
332 declarator = DECL_NAME (get_first_fn (declarator));
347 if (flags == NO_SPECIAL && ctype && declarator == cname)
H A Ddecl.c7681 start_decl (declarator, declspecs, initialized, attributes, prefix_attributes) in start_decl() argument
7682 tree declarator, declspecs; in start_decl()
7710 decl = grokdeclarator (declarator, declspecs, NORMAL, initialized,
9464 start_handler_parms (declspecs, declarator) in start_handler_parms() argument
9466 tree declarator;
9471 decl = grokdeclarator (declarator, declspecs, CATCHPARM,
9646 grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals, in grokfndecl() argument
9650 tree declarator;
9666 decl = build_lang_decl (FUNCTION_DECL, declarator, type);
9678 if ((MAIN_NAME_P (declarator)
[all …]
H A Dparse.y179 parse_decl (declarator, attributes, initialized) in parse_decl() argument
180 tree declarator, attributes; in parse_decl()
183 return start_decl (declarator, current_declspecs, initialized,
188 parse_decl0 (declarator, specs_attrs, lookups, attributes, initialized) in parse_decl0() argument
189 tree declarator, specs_attrs, lookups, attributes; in parse_decl0()
193 return parse_decl (declarator, attributes, initialized);
208 parse_field (declarator, attributes, asmspec, init) in parse_field() argument
209 tree declarator, attributes, asmspec, init; in parse_field()
211 tree d = grokfield (declarator, current_declspecs, init, asmspec,
218 parse_field0 (declarator, specs_attrs, lookups, attributes, asmspec, init) in parse_field0() argument
[all …]
H A Ddecl2.c873 grokfield (declarator, declspecs, init, asmspec_tree, attrlist) in grokfield() argument
874 tree declarator, declspecs, init, asmspec_tree, attrlist; in grokfield()
881 if (init == NULL_TREE && declarator != NULL_TREE
882 && TREE_CODE (declarator) == CALL_EXPR
883 && TREE_OPERAND (declarator, 0)
884 && (TREE_CODE (TREE_OPERAND (declarator, 0)) == IDENTIFIER_NODE
885 || TREE_CODE (TREE_OPERAND (declarator, 0)) == SCOPE_REF)
886 && parmlist_is_exprlist (CALL_DECLARATOR_PARMS (declarator)))
905 declarator = TREE_OPERAND (declarator, 0);
910 && TREE_CODE (declarator) == SCOPE_REF
[all …]
H A Dmethod.c1044 tree declarator = make_call_declarator (name, args, NULL_TREE, raises); local
1047 declarator = build_nt (ADDR_EXPR, declarator);
1049 fn = grokfield (declarator, declspecs, NULL_TREE, NULL_TREE, NULL_TREE);
H A Dsemantics.c1540 begin_function_definition (decl_specs, attributes, declarator) in begin_function_definition() argument
1543 tree declarator;
1545 if (!start_function (decl_specs, declarator, attributes, SF_DEFAULT))
1574 finish_declarator (declarator, declspecs, attributes, in finish_declarator() argument
1576 tree declarator; in finish_declarator()
1582 return start_decl (declarator, declspecs, initialized, attributes,
H A Dpt.c1492 check_explicit_specialization (declarator, decl, template_count, flags) in check_explicit_specialization() argument
1493 tree declarator; in check_explicit_specialization()
1517 else if (TREE_CODE (declarator) == TEMPLATE_ID_EXPR)
1531 declarator);
1595 if (TREE_CODE (declarator) == TEMPLATE_ID_EXPR)
1600 if (uses_template_parms (declarator))
1602 declarator);
1605 declarator);
1646 if (TREE_CODE (declarator) != TEMPLATE_ID_EXPR)
1650 my_friendly_assert (TREE_CODE (declarator) == IDENTIFIER_NODE,
[all …]
/openbsd-src/gnu/gcc/gcc/cp/
H A Dparser.c873 cp_declarator *declarator; in make_declarator() local
875 declarator = (cp_declarator *) alloc_declarator (sizeof (cp_declarator)); in make_declarator()
876 declarator->kind = kind; in make_declarator()
877 declarator->attributes = NULL_TREE; in make_declarator()
878 declarator->declarator = NULL; in make_declarator()
880 return declarator; in make_declarator()
893 cp_declarator *declarator; in make_id_declarator() local
912 declarator = make_declarator (cdk_id); in make_id_declarator()
913 declarator->u.id.qualifying_scope = qualifying_scope; in make_id_declarator()
914 declarator->u.id.unqualified_name = unqualified_name; in make_id_declarator()
[all …]
H A Dfriend.c407 do_friend (tree ctype, tree declarator, tree decl, in do_friend() argument
417 if (TREE_CODE (declarator) == TEMPLATE_ID_EXPR) in do_friend()
419 declarator = TREE_OPERAND (declarator, 0); in do_friend()
420 if (is_overloaded_fn (declarator)) in do_friend()
421 declarator = DECL_NAME (get_first_fn (declarator)); in do_friend()
455 if (flags == NO_SPECIAL && declarator == cname) in do_friend()
H A Ddecl.c3797 const cp_declarator *declarator) in groktypename() argument
3803 type = grokdeclarator (declarator, type_specifiers, TYPENAME, 0, &attrs); in groktypename()
3825 start_decl (const cp_declarator *declarator, in start_decl() argument
3846 decl = grokdeclarator (declarator, declspecs, NORMAL, initialized, in start_decl()
6031 tree declarator, in grokfndecl() argument
6055 decl = build_lang_decl (FUNCTION_DECL, declarator, type); in grokfndecl()
6136 if ((MAIN_NAME_P (declarator) in grokfndecl()
6137 || (IDENTIFIER_LENGTH (declarator) > 10 in grokfndecl()
6138 && IDENTIFIER_POINTER (declarator)[0] == '_' in grokfndecl()
6139 && IDENTIFIER_POINTER (declarator)[1] == '_' in grokfndecl()
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dc-decl.c3058 struct c_declarator *declarator = XOBNEW (&parser_obstack, in build_array_declarator() local
3060 declarator->kind = cdk_array; in build_array_declarator()
3061 declarator->declarator = 0; in build_array_declarator()
3062 declarator->u.array.dimen = expr; in build_array_declarator()
3065 declarator->u.array.attrs = quals->attrs; in build_array_declarator()
3066 declarator->u.array.quals = quals_from_declspecs (quals); in build_array_declarator()
3070 declarator->u.array.attrs = NULL_TREE; in build_array_declarator()
3071 declarator->u.array.quals = 0; in build_array_declarator()
3073 declarator->u.array.static_p = static_p; in build_array_declarator()
3074 declarator->u.array.vla_unspec_p = vla_unspec_p; in build_array_declarator()
[all …]
H A Dc-tree.h326 struct c_declarator *declarator; member
359 struct c_declarator *declarator; member
369 struct c_declarator *declarator; member
H A Dc-pretty-print.h68 c_pretty_print_fn declarator; member
112 pp_c_base (PPI)->declarator (pp_c_base (PPI), D)
H A Dc-parser.c1297 struct c_declarator *declarator; in c_parser_declaration_or_fndef() local
1304 declarator = c_parser_declarator (parser, specs->type_seen_p, in c_parser_declaration_or_fndef()
1306 if (declarator == NULL) in c_parser_declaration_or_fndef()
1338 d = start_decl (declarator, specs, true, in c_parser_declaration_or_fndef()
1353 tree d = start_decl (declarator, specs, false, in c_parser_declaration_or_fndef()
1395 if (!start_function (specs, declarator, all_prefix_attrs)) in c_parser_declaration_or_fndef()
2056 struct c_declarator *declarator; in c_parser_struct_declaration() local
2059 declarator = build_id_declarator (NULL_TREE); in c_parser_struct_declaration()
2061 declarator = c_parser_declarator (parser, specs->type_seen_p, in c_parser_struct_declaration()
2063 if (declarator == NULL) in c_parser_struct_declaration()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Dparse-scan.c390 struct method_declarator *declarator; member
2595 report_main_declaration (yyvsp[-1].declarator); in yyparse()
2605 yyval.declarator = d; in yyparse()
2614 yyval.declarator = d; in yyparse()
3298 report_main_declaration (declarator) in report_main_declaration() argument
3299 struct method_declarator *declarator; in report_main_declaration()
3305 && !strcmp (declarator->method_name, "main")
3306 && declarator->args
3307 && declarator->args [0] == '['
3308 && (! strcmp (declarator->args+1, "String")
[all …]
H A Dparse-scan.y133 struct method_declarator *declarator; member
205 %type <declarator> method_declarator
1317 report_main_declaration (declarator) in report_main_declaration() argument
1318 struct method_declarator *declarator; in report_main_declaration()
1324 && !strcmp (declarator->method_name, "main")
1325 && declarator->args
1326 && declarator->args [0] == '['
1327 && (! strcmp (declarator->args+1, "String")
1328 || ! strcmp (declarator->args + 1, "java.lang.String"))
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dc-decl.c2818 start_decl (declarator, declspecs, initialized, attributes) in start_decl() argument
2819 tree declarator, declspecs; in start_decl()
2831 decl = grokdeclarator (declarator, declspecs,
3468 grokdeclarator (declarator, declspecs, decl_context, initialized) in grokdeclarator() argument
3470 tree declarator;
3507 tree decl = declarator;
3959 while (declarator && TREE_CODE (declarator) != IDENTIFIER_NODE)
3963 declarator = TREE_OPERAND (declarator, 0);
3992 if (TREE_CODE (declarator) == TREE_LIST)
3996 tree attrs = TREE_PURPOSE (declarator);
[all …]
H A Dc-pretty-print.h49 c_pretty_print_fn declarator; member
116 (*pp_c_base (PPI)->declarator) (pp_c_base (PPI), D)
H A Dc-parse.in215 %type <ttype> declarator
428 declspecs_ts setspecs declarator
440 | declspecs_ts setspecs declarator error
1424 declarator maybeasm maybe_attribute '='
1432 | declarator maybeasm maybe_attribute
1579 declarator
1640 /* Any kind of declarator (thus, all declarators allowed
1643 declarator:
1648 /* A declarator that is allowed only after an explicit typespec. */
1668 /* Kinds of declarator that can appear in a parameter list
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaType.cpp167 Declarator &declarator; member in __anon41c88aee0111::TypeProcessingState
200 TypeProcessingState(Sema &sema, Declarator &declarator) in TypeProcessingState() argument
201 : sema(sema), declarator(declarator), in TypeProcessingState()
202 chunkIndex(declarator.getNumTypeObjects()), parsedNoDeref(false) {} in TypeProcessingState()
209 return declarator; in getDeclarator()
213 return chunkIndex == declarator.getNumTypeObjects(); in isProcessingDeclSpec()
221 assert(idx <= declarator.getNumTypeObjects()); in setCurrentChunkIndex()
228 return declarator.getTypeObject(chunkIndex).getAttrs(); in getCurrentAttributes()
340 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
395 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType() argument
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dconv7.C44 const IdlDeclarator& declarator = *declIter; // WARNING - choosing in yyparse() local
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Ddecl-refs.t11 # Test three syntaxes with each declarator/funny char combination:
44 # as a declarator placeholder.
/openbsd-src/gnu/llvm/llvm/docs/HistoricalNotes/
H A D2001-02-06-TypeNotationDebate.txt40 Search for "In another interview, you defined the C declarator syntax as
H A D2001-02-06-TypeNotationDebateResp1.txt13 and him that the C declarator syntax is difficult and confusing.
/openbsd-src/gnu/usr.bin/gcc/gcc/objc/
H A Dobjc-act.c498 define_decl (declarator, declspecs) in define_decl() argument
499 tree declarator; in define_decl()
502 tree decl = start_decl (declarator, declspecs, 0, NULL_TREE);
5782 add_instance_variable (class, public, declarator, declspecs, width) in add_instance_variable() argument
5785 tree declarator;
5791 raw_decl = build_tree_list (declspecs, declarator);
5799 declarator, declspecs, width);
7949 tree declarator; /* "array_ref", "indirect_ref", "call_expr"... */ local
7952 declarator = TREE_VALUE (atype_or_adecl);
7956 if (declarator)
[all …]

1234