Lines Matching refs:DeclSpec

550 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) {  in isTagName()
558 case TTK_Struct: return DeclSpec::TST_struct; in isTagName()
559 case TTK_Interface: return DeclSpec::TST_interface; in isTagName()
560 case TTK_Union: return DeclSpec::TST_union; in isTagName()
561 case TTK_Class: return DeclSpec::TST_class; in isTagName()
562 case TTK_Enum: return DeclSpec::TST_enum; in isTagName()
566 return DeclSpec::TST_unspecified; in isTagName()
3714 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec()
3803 static unsigned GetDiagnosticTypeSpecifierID(DeclSpec::TST T) { in GetDiagnosticTypeSpecifierID()
3805 case DeclSpec::TST_class: in GetDiagnosticTypeSpecifierID()
3807 case DeclSpec::TST_struct: in GetDiagnosticTypeSpecifierID()
3809 case DeclSpec::TST_interface: in GetDiagnosticTypeSpecifierID()
3811 case DeclSpec::TST_union: in GetDiagnosticTypeSpecifierID()
3813 case DeclSpec::TST_enum: in GetDiagnosticTypeSpecifierID()
3824 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec()
3830 if (DS.getTypeSpecType() == DeclSpec::TST_class || in ParsedFreeStandingDeclSpec()
3831 DS.getTypeSpecType() == DeclSpec::TST_struct || in ParsedFreeStandingDeclSpec()
3832 DS.getTypeSpecType() == DeclSpec::TST_interface || in ParsedFreeStandingDeclSpec()
3833 DS.getTypeSpecType() == DeclSpec::TST_union || in ParsedFreeStandingDeclSpec()
3834 DS.getTypeSpecType() == DeclSpec::TST_enum) { in ParsedFreeStandingDeclSpec()
3859 if (TypeQuals & DeclSpec::TQ_restrict) in ParsedFreeStandingDeclSpec()
3924 DS.getStorageClassSpec() != DeclSpec::SCS_typedef) { in ParsedFreeStandingDeclSpec()
3951 DS.getStorageClassSpec() == DeclSpec::SCS_unspecified) { in ParsedFreeStandingDeclSpec()
3960 DS.getTypeSpecType() == DeclSpec::TST_typename) { in ParsedFreeStandingDeclSpec()
3981 if (DS.getTypeSpecType() == DeclSpec::TST_error || in ParsedFreeStandingDeclSpec()
3986 DS.getStorageClassSpec() != DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
3994 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
4039 if (DeclSpec::SCS SCS = DS.getStorageClassSpec()) { in ParsedFreeStandingDeclSpec()
4040 if (SCS == DeclSpec::SCS_mutable) in ParsedFreeStandingDeclSpec()
4044 else if (!DS.isExternInLinkageSpec() && SCS != DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
4046 << DeclSpec::getSpecifierName(SCS); in ParsedFreeStandingDeclSpec()
4049 if (DeclSpec::TSCS TSCS = DS.getThreadStorageClassSpec()) in ParsedFreeStandingDeclSpec()
4051 << DeclSpec::getSpecifierName(TSCS); in ParsedFreeStandingDeclSpec()
4053 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParsedFreeStandingDeclSpec()
4055 if (DS.getTypeQualifiers() & DeclSpec::TQ_volatile) in ParsedFreeStandingDeclSpec()
4058 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in ParsedFreeStandingDeclSpec()
4060 if (DS.getTypeQualifiers() & DeclSpec::TQ_unaligned) in ParsedFreeStandingDeclSpec()
4068 DeclSpec::TST TypeSpecType = DS.getTypeSpecType(); in ParsedFreeStandingDeclSpec()
4069 if (TypeSpecType == DeclSpec::TST_class || in ParsedFreeStandingDeclSpec()
4070 TypeSpecType == DeclSpec::TST_struct || in ParsedFreeStandingDeclSpec()
4071 TypeSpecType == DeclSpec::TST_interface || in ParsedFreeStandingDeclSpec()
4072 TypeSpecType == DeclSpec::TST_union || in ParsedFreeStandingDeclSpec()
4073 TypeSpecType == DeclSpec::TST_enum) { in ParsedFreeStandingDeclSpec()
4191 StorageClassSpecToVarDeclStorageClass(const DeclSpec &DS) { in StorageClassSpecToVarDeclStorageClass()
4192 DeclSpec::SCS StorageClassSpec = DS.getStorageClassSpec(); in StorageClassSpecToVarDeclStorageClass()
4193 assert(StorageClassSpec != DeclSpec::SCS_typedef && in StorageClassSpecToVarDeclStorageClass()
4196 case DeclSpec::SCS_unspecified: return SC_None; in StorageClassSpecToVarDeclStorageClass()
4197 case DeclSpec::SCS_extern: in StorageClassSpecToVarDeclStorageClass()
4201 case DeclSpec::SCS_static: return SC_Static; in StorageClassSpecToVarDeclStorageClass()
4202 case DeclSpec::SCS_auto: return SC_Auto; in StorageClassSpecToVarDeclStorageClass()
4203 case DeclSpec::SCS_register: return SC_Register; in StorageClassSpecToVarDeclStorageClass()
4204 case DeclSpec::SCS_private_extern: return SC_PrivateExtern; in StorageClassSpecToVarDeclStorageClass()
4206 case DeclSpec::SCS_mutable: // Fall through. in StorageClassSpecToVarDeclStorageClass()
4207 case DeclSpec::SCS_typedef: return SC_None; in StorageClassSpecToVarDeclStorageClass()
4247 Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS, in BuildAnonymousStructOrUnion()
4271 if (DS.getStorageClassSpec() != DeclSpec::SCS_static && in BuildAnonymousStructOrUnion()
4279 DS.SetStorageClassSpec(*this, DeclSpec::SCS_static, SourceLocation(), in BuildAnonymousStructOrUnion()
4285 else if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified && in BuildAnonymousStructOrUnion()
4292 DS.SetStorageClassSpec(*this, DeclSpec::SCS_unspecified, in BuildAnonymousStructOrUnion()
4300 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in BuildAnonymousStructOrUnion()
4304 if (DS.getTypeQualifiers() & DeclSpec::TQ_volatile) in BuildAnonymousStructOrUnion()
4309 if (DS.getTypeQualifiers() & DeclSpec::TQ_restrict) in BuildAnonymousStructOrUnion()
4314 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in BuildAnonymousStructOrUnion()
4319 if (DS.getTypeQualifiers() & DeclSpec::TQ_unaligned) in BuildAnonymousStructOrUnion()
4441 DeclSpec::SCS SCSpec = DS.getStorageClassSpec(); in BuildAnonymousStructOrUnion()
4443 if (SCSpec == DeclSpec::SCS_mutable) { in BuildAnonymousStructOrUnion()
4514 Decl *Sema::BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS, in BuildMicrosoftCAnonymousStruct()
4728 DeclSpec &DS = D.getMutableDeclSpec(); in RebuildDeclaratorInCurrentInstantiation()
4730 case DeclSpec::TST_typename: in RebuildDeclaratorInCurrentInstantiation()
4731 case DeclSpec::TST_typeofType: in RebuildDeclaratorInCurrentInstantiation()
4732 case DeclSpec::TST_underlyingType: in RebuildDeclaratorInCurrentInstantiation()
4733 case DeclSpec::TST_atomic: { in RebuildDeclaratorInCurrentInstantiation()
4755 case DeclSpec::TST_decltype: in RebuildDeclaratorInCurrentInstantiation()
4756 case DeclSpec::TST_typeofExpr: { in RebuildDeclaratorInCurrentInstantiation()
5000 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5022 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5025 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
5031 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
5086 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef) in HandleDeclarator()
5114 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
5292 void Sema::DiagnoseFunctionSpecifiers(const DeclSpec &DS) { in DiagnoseFunctionSpecifiers()
5867 DeclSpec::SCS SCSpec = D.getDeclSpec().getStorageClassSpec(); in ActOnVariableDeclarator()
5903 if (SCSpec == DeclSpec::SCS_mutable) { in ActOnVariableDeclarator()
5911 if (getLangOpts().CPlusPlus11 && SCSpec == DeclSpec::SCS_register && in ActOnVariableDeclarator()
6204 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) { in ActOnVariableDeclarator()
6212 (SCSpec != DeclSpec::SCS_unspecified || in ActOnVariableDeclarator()
6213 TSCS != DeclSpec::TSCS_thread_local || in ActOnVariableDeclarator()
6217 << DeclSpec::getSpecifierName(TSCS); in ActOnVariableDeclarator()
7303 case DeclSpec::SCS_auto: in getFunctionStorageClass()
7304 case DeclSpec::SCS_register: in getFunctionStorageClass()
7305 case DeclSpec::SCS_mutable: in getFunctionStorageClass()
7310 case DeclSpec::SCS_unspecified: break; in getFunctionStorageClass()
7311 case DeclSpec::SCS_extern: in getFunctionStorageClass()
7315 case DeclSpec::SCS_static: { in getFunctionStorageClass()
7328 case DeclSpec::SCS_private_extern: return SC_PrivateExtern; in getFunctionStorageClass()
7671 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnFunctionDeclarator()
7674 << DeclSpec::getSpecifierName(TSCS); in ActOnFunctionDeclarator()
8904 void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { in CheckMain()
10271 DeclSpec DS(Attrs.getPool().getFactory()); in ActOnCXXForRangeIdentifier()
10275 DS.SetTypeSpecType(DeclSpec::TST_auto, IdentLoc, PrevSpec, DiagID, in ActOnCXXForRangeIdentifier()
10666 Sema::DeclGroupPtrTy Sema::FinalizeDeclaratorGroup(Scope *S, const DeclSpec &DS, in FinalizeDeclaratorGroup()
10682 if (DeclSpec::isDeclRep(DS.getTypeSpecType())) { in FinalizeDeclaratorGroup()
10793 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator()
10799 if (DS.getStorageClassSpec() == DeclSpec::SCS_register) { in ActOnParamDeclarator()
10802 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ActOnParamDeclarator()
10804 } else if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified) { in ActOnParamDeclarator()
10810 if (DeclSpec::TSCS TSCS = DS.getThreadStorageClassSpec()) in ActOnParamDeclarator()
10812 << DeclSpec::getSpecifierName(TSCS); in ActOnParamDeclarator()
11055 DeclSpec DS(attrs); in ActOnFinishKNRParamDeclarations()
11058 DS.SetTypeSpecType(DeclSpec::TST_int, FTI.Params[i].IdentLoc, PrevSpec, in ActOnFinishKNRParamDeclarations()
11766 DeclSpec DS(attrFactory); in ImplicitlyDefineFunction()
11768 bool Error = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, Dummy, DiagID, in ImplicitlyDefineFunction()
13382 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in HandleField()
13385 << DeclSpec::getSpecifierName(TSCS); in HandleField()
13419 = (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_mutable); in HandleField()