Lines Matching refs:declspecs
4770 check_tag_decl (cp_decl_specifier_seq *declspecs, in check_tag_decl() argument
4773 int saw_friend = decl_spec_seq_has_spec_p (declspecs, ds_friend); in check_tag_decl()
4774 int saw_typedef = decl_spec_seq_has_spec_p (declspecs, ds_typedef); in check_tag_decl()
4782 if (declspecs->multiple_types_p) in check_tag_decl()
4784 else if (declspecs->redefined_builtin_type) in check_tag_decl()
4787 permerror (declspecs->locations[ds_redefined_builtin_type_spec], in check_tag_decl()
4789 declspecs->redefined_builtin_type); in check_tag_decl()
4793 if (declspecs->type in check_tag_decl()
4794 && TYPE_P (declspecs->type) in check_tag_decl()
4795 && ((TREE_CODE (declspecs->type) != TYPENAME_TYPE in check_tag_decl()
4796 && MAYBE_CLASS_TYPE_P (declspecs->type)) in check_tag_decl()
4797 || TREE_CODE (declspecs->type) == ENUMERAL_TYPE)) in check_tag_decl()
4798 declared_type = declspecs->type; in check_tag_decl()
4799 else if (declspecs->type == error_mark_node) in check_tag_decl()
4805 error_at (declspecs->locations[ds_type_spec], in check_tag_decl()
4845 if (decl_spec_seq_has_spec_p (declspecs, ds_inline)) in check_tag_decl()
4846 error_at (declspecs->locations[ds_inline], in check_tag_decl()
4848 else if (decl_spec_seq_has_spec_p (declspecs, ds_virtual)) in check_tag_decl()
4849 error_at (declspecs->locations[ds_virtual], in check_tag_decl()
4854 error_at (declspecs->locations[ds_friend], in check_tag_decl()
4856 else if (decl_spec_seq_has_spec_p (declspecs, ds_explicit)) in check_tag_decl()
4857 error_at (declspecs->locations[ds_explicit], in check_tag_decl()
4859 else if (declspecs->storage_class) in check_tag_decl()
4860 error_at (declspecs->locations[ds_storage_class], in check_tag_decl()
4863 else if (decl_spec_seq_has_spec_p (declspecs, ds_const)) in check_tag_decl()
4864 error_at (declspecs->locations[ds_const], in check_tag_decl()
4867 else if (decl_spec_seq_has_spec_p (declspecs, ds_volatile)) in check_tag_decl()
4868 error_at (declspecs->locations[ds_volatile], in check_tag_decl()
4871 else if (decl_spec_seq_has_spec_p (declspecs, ds_restrict)) in check_tag_decl()
4872 error_at (declspecs->locations[ds_restrict], in check_tag_decl()
4875 else if (decl_spec_seq_has_spec_p (declspecs, ds_thread)) in check_tag_decl()
4876 error_at (declspecs->locations[ds_thread], in check_tag_decl()
4880 warning_at (declspecs->locations[ds_typedef], 0, in check_tag_decl()
4882 else if (decl_spec_seq_has_spec_p (declspecs, ds_constexpr)) in check_tag_decl()
4883 error_at (declspecs->locations[ds_constexpr], in check_tag_decl()
4887 if (declspecs->attributes && warn_attributes && declared_type) in check_tag_decl()
4933 shadow_tag (cp_decl_specifier_seq *declspecs) in shadow_tag() argument
4935 tree t = check_tag_decl (declspecs, in shadow_tag()
4956 declspecs, NORMAL, 0, NULL); in shadow_tag()
5014 cp_decl_specifier_seq *declspecs, in start_decl() argument
5035 decl = grokdeclarator (declarator, declspecs, NORMAL, initialized, in start_decl()
9240 const cp_decl_specifier_seq *declspecs, in grokvardecl() argument
9263 if (declspecs->storage_class == sc_extern) in grokvardecl()
9291 if (declspecs->storage_class == sc_extern) in grokvardecl()
9308 TREE_PUBLIC (decl) = (declspecs->storage_class != sc_static in grokvardecl()
9318 TREE_STATIC (decl) = declspecs->storage_class == sc_static; in grokvardecl()
9322 if (decl_spec_seq_has_spec_p (declspecs, ds_thread)) in grokvardecl()
9330 if (declspecs->gnu_thread_keyword_p) in grokvardecl()
9373 error_at (declspecs->locations[ds_type_spec], in grokvardecl()
10142 cp_decl_specifier_seq *declspecs, in grokdeclarator() argument
10210 bool typedef_p = decl_spec_seq_has_spec_p (declspecs, ds_typedef); in grokdeclarator()
10211 bool constexpr_p = decl_spec_seq_has_spec_p (declspecs, ds_constexpr); in grokdeclarator()
10217 signed_p = decl_spec_seq_has_spec_p (declspecs, ds_signed); in grokdeclarator()
10218 unsigned_p = decl_spec_seq_has_spec_p (declspecs, ds_unsigned); in grokdeclarator()
10219 short_p = decl_spec_seq_has_spec_p (declspecs, ds_short); in grokdeclarator()
10220 long_p = decl_spec_seq_has_spec_p (declspecs, ds_long); in grokdeclarator()
10221 longlong = decl_spec_seq_has_spec_p (declspecs, ds_long_long); in grokdeclarator()
10222 explicit_intN = declspecs->explicit_intN_p; in grokdeclarator()
10223 thread_p = decl_spec_seq_has_spec_p (declspecs, ds_thread); in grokdeclarator()
10227 bool concept_p = decl_spec_seq_has_spec_p (declspecs, ds_concept); in grokdeclarator()
10231 if (decl_spec_seq_has_spec_p (declspecs, ds_const)) in grokdeclarator()
10233 if (decl_spec_seq_has_spec_p (declspecs, ds_volatile)) in grokdeclarator()
10235 if (decl_spec_seq_has_spec_p (declspecs, ds_restrict)) in grokdeclarator()
10253 declspecs->locations); in grokdeclarator()
10255 typespec_loc = declspecs->locations[ds_type_spec]; in grokdeclarator()
10429 && ! (ctype && !declspecs->any_specifiers_p)) in grokdeclarator()
10499 if (declspecs->multiple_types_p) in grokdeclarator()
10505 if (declspecs->conflicting_specifiers_p) in grokdeclarator()
10512 type = declspecs->type; in grokdeclarator()
10544 && decl_spec_seq_has_spec_p (declspecs, ds_complex)) in grokdeclarator()
10547 pedwarn (declspecs->locations[ds_complex], OPT_Wpedantic, in grokdeclarator()
10553 explicit_int = declspecs->explicit_int_p; in grokdeclarator()
10554 explicit_char = declspecs->explicit_char_p; in grokdeclarator()
10573 declspecs->locations); in grokdeclarator()
10617 if (! int_n_enabled_p[declspecs->int_n_idx]) in grokdeclarator()
10620 int_n_data[declspecs->int_n_idx].bitsize); in grokdeclarator()
10626 int_n_data[declspecs->int_n_idx].bitsize, name); in grokdeclarator()
10717 type = int_n_trees[declspecs->int_n_idx].unsigned_type; in grokdeclarator()
10734 type = int_n_trees[declspecs->int_n_idx].signed_type; in grokdeclarator()
10742 if (decl_spec_seq_has_spec_p (declspecs, ds_complex)) in grokdeclarator()
10774 || declspecs->decltype_p) in grokdeclarator()
10790 inlinep = decl_spec_seq_has_spec_p (declspecs, ds_inline); in grokdeclarator()
10791 virtualp = decl_spec_seq_has_spec_p (declspecs, ds_virtual); in grokdeclarator()
10792 explicitp = decl_spec_seq_has_spec_p (declspecs, ds_explicit); in grokdeclarator()
10794 storage_class = declspecs->storage_class; in grokdeclarator()
10811 friendp = decl_spec_seq_has_spec_p (declspecs, ds_friend); in grokdeclarator()
10847 error_at (declspecs->locations[ds_virtual], in grokdeclarator()
10857 error_at (declspecs->locations[ds_inline], in grokdeclarator()
10860 error_at (declspecs->locations[ds_typedef], in grokdeclarator()
10863 error_at (declspecs->locations[ds_constexpr], "structured " in grokdeclarator()
10866 error_at (declspecs->locations[ds_thread], in grokdeclarator()
10868 declspecs->gnu_thread_keyword_p in grokdeclarator()
10871 error_at (declspecs->locations[ds_concept], in grokdeclarator()
10912 declspecs->type = type; in grokdeclarator()
10921 declspecs->storage_class = sc_none; in grokdeclarator()
10922 declspecs->locations[ds_thread] = UNKNOWN_LOCATION; in grokdeclarator()
10927 && declspecs->type in grokdeclarator()
10928 && ANON_AGGR_TYPE_P (declspecs->type)) in grokdeclarator()
10989 if (declspecs->gnu_thread_keyword_p) in grokdeclarator()
10996 storage_class = declspecs->storage_class = sc_static; in grokdeclarator()
11029 if (declspecs->std_attributes) in grokdeclarator()
11031 location_t attr_loc = declspecs->locations[ds_std_attribute]; in grokdeclarator()
11111 input_location = declspecs->locations[ds_type_spec]; in grokdeclarator()
11738 error_at (declspecs->locations[ds_explicit], in grokdeclarator()
11741 error_at (declspecs->locations[ds_explicit], in grokdeclarator()
11744 error_at (declspecs->locations[ds_explicit], in grokdeclarator()
11859 && declspecs->type_definition_p in grokdeclarator()
11872 if (decl_spec_seq_has_spec_p (declspecs, ds_alias)) in grokdeclarator()
12083 location_t loc = declspecs->locations[ds_type_spec]; in grokdeclarator()
12376 if (declspecs->gnu_thread_keyword_p) in grokdeclarator()
12415 if (declspecs->storage_class == sc_static) in grokdeclarator()
12447 if (declspecs->gnu_thread_keyword_p) in grokdeclarator()
12462 || decl_spec_seq_has_spec_p (declspecs, ds_inline)) in grokdeclarator()
12547 declspecs, in grokdeclarator()
12606 location_t loc = declspecs->locations[ds_type_spec]; in grokdeclarator()
15363 start_function (cp_decl_specifier_seq *declspecs, in start_function() argument
15369 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, 1, &attrs); in start_function()
16030 grokmethod (cp_decl_specifier_seq *declspecs, in grokmethod() argument
16033 tree fndecl = grokdeclarator (declarator, declspecs, MEMFUNCDEF, 0, in grokmethod()