Lines Matching refs:DeclSpec
54 DeclSpec DS(AttrFactory); in ParseTypeName()
1425 DeclSpec &DS, in handleDeclspecAlignBeforeClassKey()
1783 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseDeclGroup()
2168 void Parser::ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS, in ParseSpecifierQualifierList()
2180 } else if (Specs == DeclSpec::PQ_None && !DS.hasAttributes()) { in ParseSpecifierQualifierList()
2187 if (Specs & DeclSpec::PQ_StorageClassSpecifier) { in ParseSpecifierQualifierList()
2197 if (Specs & DeclSpec::PQ_FunctionSpecifier) { in ParseSpecifierQualifierList()
2247 bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, in ParseImplicitInt()
2282 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ParseImplicitInt()
2300 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
2320 case DeclSpec::TST_enum: in ParseImplicitInt()
2322 case DeclSpec::TST_union: in ParseImplicitInt()
2324 case DeclSpec::TST_struct: in ParseImplicitInt()
2326 case DeclSpec::TST_interface: in ParseImplicitInt()
2329 case DeclSpec::TST_class: in ParseImplicitInt()
2430 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt()
2547 Parser::DiagnoseMissingSemiAfterTagDefinition(DeclSpec &DS, AccessSpecifier AS, in DiagnoseMissingSemiAfterTagDefinition()
2631 << DeclSpec::getSpecifierName(DS.getTypeSpecType(), PPol) << tok::semi; in DiagnoseMissingSemiAfterTagDefinition()
2673 void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, in ParseDeclarationSpecifiers()
2705 DS.getStorageClassSpec() == clang::DeclSpec::SCS_typedef && in ParseDeclarationSpecifiers()
2859 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, in ParseDeclarationSpecifiers()
2919 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
2938 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
2961 DS.getTypeQualifiers() == DeclSpec::TQ_const && in ParseDeclarationSpecifiers()
2962 DS.getStorageClassSpec() == DeclSpec::SCS_static) in ParseDeclarationSpecifiers()
3001 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3036 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3107 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3150 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_typedef, Loc, in ParseDeclarationSpecifiers()
3155 if (DS.getThreadStorageClassSpec() == DeclSpec::TSCS___thread) in ParseDeclarationSpecifiers()
3157 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_extern, Loc, in ParseDeclarationSpecifiers()
3162 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_private_extern, in ParseDeclarationSpecifiers()
3167 if (DS.getThreadStorageClassSpec() == DeclSpec::TSCS___thread) in ParseDeclarationSpecifiers()
3169 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_static, Loc, in ParseDeclarationSpecifiers()
3176 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc, in ParseDeclarationSpecifiers()
3182 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3185 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc, in ParseDeclarationSpecifiers()
3191 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto_type, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3195 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_register, Loc, in ParseDeclarationSpecifiers()
3200 isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_mutable, Loc, in ParseDeclarationSpecifiers()
3205 isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS___thread, Loc, in ParseDeclarationSpecifiers()
3210 isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS_thread_local, Loc, in ParseDeclarationSpecifiers()
3214 isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS__Thread_local, in ParseDeclarationSpecifiers()
3270 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3274 if (DS.getTypeSpecWidth() != DeclSpec::TSW_long) in ParseDeclarationSpecifiers()
3275 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_long, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3278 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3282 isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3286 isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_signed, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3290 isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_unsigned, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3294 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_complex, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3298 isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_imaginary, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3302 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3306 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3310 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3314 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3318 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_half, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3322 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3326 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_double, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3330 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3334 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_wchar, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3338 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char16, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3342 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3348 DS.getTypeSpecType() != DeclSpec::TST_unspecified && in ParseDeclarationSpecifiers()
3349 DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseDeclarationSpecifiers()
3356 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_bool, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3361 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal32, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3365 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal64, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3369 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal128, Loc, PrevSpec, in ParseDeclarationSpecifiers()
3392 isInvalid = DS.SetTypeSpecType(DeclSpec::TST_##ImgType##_t, Loc, PrevSpec, \ in ParseDeclarationSpecifiers()
3433 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3437 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3441 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3493 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
3528 if (DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, StartLoc, in ParseDeclarationSpecifiers()
3810 void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS, in ParseEnumSpecifier()
3816 Actions.CodeCompleteTag(getCurScope(), DeclSpec::TST_enum); in ParseEnumSpecifier()
4084 Decl *TagDecl = Actions.ActOnTag(getCurScope(), DeclSpec::TST_enum, TUK, in ParseEnumSpecifier()
4098 if (DS.SetTypeSpecType(DeclSpec::TST_enum, StartLoc, in ParseEnumSpecifier()
4116 getCurScope(), DeclSpec::TST_enum, TUK, SS, Name, StartLoc, NameLoc); in ParseEnumSpecifier()
4122 if (DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, in ParseEnumSpecifier()
4146 if (DS.SetTypeSpecType(DeclSpec::TST_enum, StartLoc, in ParseEnumSpecifier()
4787 void Parser::ParseTypeQualifierListOpt(DeclSpec &DS, unsigned AttrReqs, in ParseTypeQualifierListOpt()
4811 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const , Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4815 isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4819 isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4825 isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
4842 isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
5023 DeclSpec DS(AttrFactory); in ParseDeclaratorInternal()
5043 DeclSpec DS(AttrFactory); in ParseDeclaratorInternal()
5065 DeclSpec DS(AttrFactory); in ParseDeclaratorInternal()
5096 DeclSpec DS(AttrFactory); in ParseDeclaratorInternal()
5112 if (DS.getTypeQualifiers() != DeclSpec::TQ_unspecified) { in ParseDeclaratorInternal()
5113 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseDeclaratorInternal()
5116 if (DS.getTypeQualifiers() & DeclSpec::TQ_volatile) in ParseDeclaratorInternal()
5120 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in ParseDeclaratorInternal()
5587 DeclSpec DS(AttrFactory); in ParseFunctionDeclarator()
5663 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in ParseFunctionDeclarator()
5889 DeclSpec DS(AttrFactory); in ParseParameterDeclarationClause()
6097 DeclSpec DS(AttrFactory); in ParseBracketDeclarator()
6262 void Parser::ParseTypeofSpecifier(DeclSpec &DS) { in ParseTypeofSpecifier()
6295 if (DS.SetTypeSpecType(DeclSpec::TST_typeofType, StartLoc, PrevSpec, in ParseTypeofSpecifier()
6318 if (DS.SetTypeSpecType(DeclSpec::TST_typeofExpr, StartLoc, PrevSpec, in ParseTypeofSpecifier()
6327 void Parser::ParseAtomicSpecifier(DeclSpec &DS) { in ParseAtomicSpecifier()
6353 if (DS.SetTypeSpecType(DeclSpec::TST_atomic, StartLoc, PrevSpec, in ParseAtomicSpecifier()
6392 bool Parser::TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc, in TryAltiVecTokenOutOfLine()