Lines Matching refs:DeclSpec
611 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) { in isTagName()
619 case TTK_Struct: return DeclSpec::TST_struct; in isTagName()
620 case TTK_Interface: return DeclSpec::TST_interface; in isTagName()
621 case TTK_Union: return DeclSpec::TST_union; in isTagName()
622 case TTK_Class: return DeclSpec::TST_class; in isTagName()
623 case TTK_Enum: return DeclSpec::TST_enum; in isTagName()
627 return DeclSpec::TST_unspecified; in isTagName()
4332 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec()
4528 static unsigned GetDiagnosticTypeSpecifierID(DeclSpec::TST T) { in GetDiagnosticTypeSpecifierID()
4530 case DeclSpec::TST_class: in GetDiagnosticTypeSpecifierID()
4532 case DeclSpec::TST_struct: in GetDiagnosticTypeSpecifierID()
4534 case DeclSpec::TST_interface: in GetDiagnosticTypeSpecifierID()
4536 case DeclSpec::TST_union: in GetDiagnosticTypeSpecifierID()
4538 case DeclSpec::TST_enum: in GetDiagnosticTypeSpecifierID()
4549 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec()
4555 if (DS.getTypeSpecType() == DeclSpec::TST_class || in ParsedFreeStandingDeclSpec()
4556 DS.getTypeSpecType() == DeclSpec::TST_struct || in ParsedFreeStandingDeclSpec()
4557 DS.getTypeSpecType() == DeclSpec::TST_interface || in ParsedFreeStandingDeclSpec()
4558 DS.getTypeSpecType() == DeclSpec::TST_union || in ParsedFreeStandingDeclSpec()
4559 DS.getTypeSpecType() == DeclSpec::TST_enum) { in ParsedFreeStandingDeclSpec()
4584 if (TypeQuals & DeclSpec::TQ_restrict) in ParsedFreeStandingDeclSpec()
4645 DS.getStorageClassSpec() != DeclSpec::SCS_typedef) { in ParsedFreeStandingDeclSpec()
4672 DS.getStorageClassSpec() == DeclSpec::SCS_unspecified) { in ParsedFreeStandingDeclSpec()
4681 DS.getTypeSpecType() == DeclSpec::TST_typename) { in ParsedFreeStandingDeclSpec()
4702 if (DS.getTypeSpecType() == DeclSpec::TST_error || in ParsedFreeStandingDeclSpec()
4707 DS.getStorageClassSpec() != DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
4715 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
4763 if (DeclSpec::SCS SCS = DS.getStorageClassSpec()) { in ParsedFreeStandingDeclSpec()
4764 if (SCS == DeclSpec::SCS_mutable) in ParsedFreeStandingDeclSpec()
4768 else if (!DS.isExternInLinkageSpec() && SCS != DeclSpec::SCS_typedef) in ParsedFreeStandingDeclSpec()
4770 << DeclSpec::getSpecifierName(SCS); in ParsedFreeStandingDeclSpec()
4773 if (DeclSpec::TSCS TSCS = DS.getThreadStorageClassSpec()) in ParsedFreeStandingDeclSpec()
4775 << DeclSpec::getSpecifierName(TSCS); in ParsedFreeStandingDeclSpec()
4777 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParsedFreeStandingDeclSpec()
4779 if (DS.getTypeQualifiers() & DeclSpec::TQ_volatile) in ParsedFreeStandingDeclSpec()
4782 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in ParsedFreeStandingDeclSpec()
4784 if (DS.getTypeQualifiers() & DeclSpec::TQ_unaligned) in ParsedFreeStandingDeclSpec()
4792 DeclSpec::TST TypeSpecType = DS.getTypeSpecType(); in ParsedFreeStandingDeclSpec()
4793 if (TypeSpecType == DeclSpec::TST_class || in ParsedFreeStandingDeclSpec()
4794 TypeSpecType == DeclSpec::TST_struct || in ParsedFreeStandingDeclSpec()
4795 TypeSpecType == DeclSpec::TST_interface || in ParsedFreeStandingDeclSpec()
4796 TypeSpecType == DeclSpec::TST_union || in ParsedFreeStandingDeclSpec()
4797 TypeSpecType == DeclSpec::TST_enum) { in ParsedFreeStandingDeclSpec()
4914 StorageClassSpecToVarDeclStorageClass(const DeclSpec &DS) { in StorageClassSpecToVarDeclStorageClass()
4915 DeclSpec::SCS StorageClassSpec = DS.getStorageClassSpec(); in StorageClassSpecToVarDeclStorageClass()
4916 assert(StorageClassSpec != DeclSpec::SCS_typedef && in StorageClassSpecToVarDeclStorageClass()
4919 case DeclSpec::SCS_unspecified: return SC_None; in StorageClassSpecToVarDeclStorageClass()
4920 case DeclSpec::SCS_extern: in StorageClassSpecToVarDeclStorageClass()
4924 case DeclSpec::SCS_static: return SC_Static; in StorageClassSpecToVarDeclStorageClass()
4925 case DeclSpec::SCS_auto: return SC_Auto; in StorageClassSpecToVarDeclStorageClass()
4926 case DeclSpec::SCS_register: return SC_Register; in StorageClassSpecToVarDeclStorageClass()
4927 case DeclSpec::SCS_private_extern: return SC_PrivateExtern; in StorageClassSpecToVarDeclStorageClass()
4929 case DeclSpec::SCS_mutable: // Fall through. in StorageClassSpecToVarDeclStorageClass()
4930 case DeclSpec::SCS_typedef: return SC_None; in StorageClassSpecToVarDeclStorageClass()
4970 Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS, in BuildAnonymousStructOrUnion()
4996 if (DS.getStorageClassSpec() != DeclSpec::SCS_static && in BuildAnonymousStructOrUnion()
5004 DS.SetStorageClassSpec(*this, DeclSpec::SCS_static, SourceLocation(), in BuildAnonymousStructOrUnion()
5010 else if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified && in BuildAnonymousStructOrUnion()
5017 DS.SetStorageClassSpec(*this, DeclSpec::SCS_unspecified, in BuildAnonymousStructOrUnion()
5025 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in BuildAnonymousStructOrUnion()
5029 if (DS.getTypeQualifiers() & DeclSpec::TQ_volatile) in BuildAnonymousStructOrUnion()
5034 if (DS.getTypeQualifiers() & DeclSpec::TQ_restrict) in BuildAnonymousStructOrUnion()
5039 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in BuildAnonymousStructOrUnion()
5044 if (DS.getTypeQualifiers() & DeclSpec::TQ_unaligned) in BuildAnonymousStructOrUnion()
5181 DeclSpec::SCS SCSpec = DS.getStorageClassSpec(); in BuildAnonymousStructOrUnion()
5183 if (SCSpec == DeclSpec::SCS_mutable) { in BuildAnonymousStructOrUnion()
5255 Decl *Sema::BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS, in BuildMicrosoftCAnonymousStruct()
5485 DeclSpec &DS = D.getMutableDeclSpec(); in RebuildDeclaratorInCurrentInstantiation()
5487 case DeclSpec::TST_typename: in RebuildDeclaratorInCurrentInstantiation()
5488 case DeclSpec::TST_typeofType: in RebuildDeclaratorInCurrentInstantiation()
5489 case DeclSpec::TST_underlyingType: in RebuildDeclaratorInCurrentInstantiation()
5490 case DeclSpec::TST_atomic: { in RebuildDeclaratorInCurrentInstantiation()
5512 case DeclSpec::TST_decltype: in RebuildDeclaratorInCurrentInstantiation()
5513 case DeclSpec::TST_typeofExpr: { in RebuildDeclaratorInCurrentInstantiation()
5781 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5784 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
5790 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
5851 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in HandleDeclarator()
5863 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
6074 void Sema::DiagnoseFunctionSpecifiers(const DeclSpec &DS) { in DiagnoseFunctionSpecifiers()
6784 DeclSpec::TSCS TSC = D.getDeclSpec().getThreadStorageClassSpec(); in diagnoseOpenCLTypes()
6790 << DeclSpec::getSpecifierName(TSC) << 1; in diagnoseOpenCLTypes()
6843 DeclSpec::SCS SCSpec = D.getDeclSpec().getStorageClassSpec(); in ActOnVariableDeclarator()
6857 if (SCSpec == DeclSpec::SCS_mutable) { in ActOnVariableDeclarator()
6865 if (getLangOpts().CPlusPlus11 && SCSpec == DeclSpec::SCS_register && in ActOnVariableDeclarator()
7123 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) { in ActOnVariableDeclarator()
7131 (SCSpec != DeclSpec::SCS_unspecified || in ActOnVariableDeclarator()
7132 TSCS != DeclSpec::TSCS_thread_local || in ActOnVariableDeclarator()
7136 << DeclSpec::getSpecifierName(TSCS); in ActOnVariableDeclarator()
8380 case DeclSpec::SCS_auto: in getFunctionStorageClass()
8381 case DeclSpec::SCS_register: in getFunctionStorageClass()
8382 case DeclSpec::SCS_mutable: in getFunctionStorageClass()
8388 case DeclSpec::SCS_unspecified: break; in getFunctionStorageClass()
8389 case DeclSpec::SCS_extern: in getFunctionStorageClass()
8393 case DeclSpec::SCS_static: { in getFunctionStorageClass()
8406 case DeclSpec::SCS_private_extern: return SC_PrivateExtern; in getFunctionStorageClass()
8884 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnFunctionDeclarator()
8887 << DeclSpec::getSpecifierName(TSCS); in ActOnFunctionDeclarator()
10993 void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { in CheckMain()
12814 DeclSpec DS(Attrs.getPool().getFactory()); in ActOnCXXForRangeIdentifier()
12818 DS.SetTypeSpecType(DeclSpec::TST_auto, IdentLoc, PrevSpec, DiagID, in ActOnCXXForRangeIdentifier()
13336 Sema::DeclGroupPtrTy Sema::FinalizeDeclaratorGroup(Scope *S, const DeclSpec &DS, in FinalizeDeclaratorGroup()
13392 if (DeclSpec::isDeclRep(DS.getTypeSpecType())) { in FinalizeDeclaratorGroup()
13524 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator()
13530 if (DS.getStorageClassSpec() == DeclSpec::SCS_register) { in ActOnParamDeclarator()
13541 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ActOnParamDeclarator()
13543 } else if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified) { in ActOnParamDeclarator()
13549 if (DeclSpec::TSCS TSCS = DS.getThreadStorageClassSpec()) in ActOnParamDeclarator()
13551 << DeclSpec::getSpecifierName(TSCS); in ActOnParamDeclarator()
13793 DeclSpec DS(attrs); in ActOnFinishKNRParamDeclarations()
13796 DS.SetTypeSpecType(DeclSpec::TST_int, FTI.Params[i].IdentLoc, PrevSpec, in ActOnFinishKNRParamDeclarations()
14741 DeclSpec DS(attrFactory); in ImplicitlyDefineFunction()
14743 bool Error = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, Dummy, DiagID, in ImplicitlyDefineFunction()
16297 bool Sema::ActOnDuplicateDefinition(DeclSpec &DS, Decl *Prev, in ActOnDuplicateDefinition()
16563 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in HandleField()
16566 << DeclSpec::getSpecifierName(TSCS); in HandleField()
16601 = (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_mutable); in HandleField()