Lines Matching refs:DS
293 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, unsigned Context) { in ParseLinkage() argument
302 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
312 DS.SetRangeStart(SourceLocation()); in ParseLinkage()
313 DS.SetRangeEnd(SourceLocation()); in ParseLinkage()
315 DS.setExternInLinkageSpec(true); in ParseLinkage()
316 ParseExternalDeclaration(attrs, &DS); in ParseLinkage()
322 DS.abort(); in ParseLinkage()
755 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) { in ParseDecltypeSpecifier() argument
768 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
780 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
807 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
830 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
837 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
850 ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
852 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
855 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
860 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec& DS, in AnnotateExistingDecltypeSpecifier() argument
871 DS.getTypeSpecType() == TST_decltype ? DS.getRepAsExpr() : in AnnotateExistingDecltypeSpecifier()
872 DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() : in AnnotateExistingDecltypeSpecifier()
879 void Parser::ParseUnderlyingTypeSpecifier(DeclSpec &DS) { in ParseUnderlyingTypeSpecifier() argument
903 if (DS.SetTypeSpecType(DeclSpec::TST_underlyingType, StartLoc, PrevSpec, in ParseUnderlyingTypeSpecifier()
907 DS.setTypeofParensRange(T.getRange()); in ParseUnderlyingTypeSpecifier()
951 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
953 EndLocation = ParseDecltypeSpecifier(DS); in ParseBaseTypeSpecifier()
955 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1046 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
1047 DS.SetRangeStart(IdLoc); in ParseBaseTypeSpecifier()
1048 DS.SetRangeEnd(EndLocation); in ParseBaseTypeSpecifier()
1049 DS.getTypeSpecScope() = SS; in ParseBaseTypeSpecifier()
1053 DS.SetTypeSpecType(TST_typename, IdLoc, PrevSpec, DiagID, Type, in ParseBaseTypeSpecifier()
1056 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1191 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier() argument
1313 CXXScopeSpec &SS = DS.getTypeSpecScope(); in ParseClassSpecifier()
1322 DS.SetTypeSpecError(); in ParseClassSpecifier()
1401 DS.SetTypeSpecError(); in ParseClassSpecifier()
1443 if (DS.isFriendSpecified()) { in ParseClassSpecifier()
1447 << SourceRange(DS.getFriendSpecLoc()); in ParseClassSpecifier()
1491 TUK = DS.isFriendSpecified() ? Sema::TUK_Friend : Sema::TUK_Declaration; in ParseClassSpecifier()
1533 if (!Name && !TemplateId && (DS.getTypeSpecType() == DeclSpec::TST_error || in ParseClassSpecifier()
1535 if (DS.getTypeSpecType() != DeclSpec::TST_error) { in ParseClassSpecifier()
1617 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation); in ParseClassSpecifier()
1639 getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(), in ParseClassSpecifier()
1665 Actions.ActOnTemplatedFriendTag(getCurScope(), DS.getFriendSpecLoc(), in ParseClassSpecifier()
1698 DS.getModulePrivateSpecLoc(), in ParseClassSpecifier()
1733 Result = DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, in ParseClassSpecifier()
1737 Result = DS.SetTypeSpecType(TagType, StartLoc, in ParseClassSpecifier()
1742 DS.SetTypeSpecError(); in ParseClassSpecifier()
2104 DeclSpec DS(AttrFactory); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq() local
2108 ParseTypeQualifierListOpt(DS, AR_NoAttributesParsed, false); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2109 D.ExtendWithDeclSpec(DS); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2113 if (DS.getTypeQualifiers() != DeclSpec::TQ_unspecified) { in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2119 if (DS.getTypeQualifiers() & TypeQual) { in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2134 DeclSpecCheck(DeclSpec::TQ_const, "const", DS.getConstSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2136 DeclSpecCheck(DeclSpec::TQ_volatile, "volatile", DS.getVolatileSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2138 DeclSpecCheck(DeclSpec::TQ_restrict, "restrict", DS.getRestrictSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2335 ParsingDeclSpec DS(*this, TemplateDiags); in ParseCXXClassMemberDeclaration() local
2336 DS.takeAttributesFrom(attrs); in ParseCXXClassMemberDeclaration()
2338 DS.SetTypeSpecError(); in ParseCXXClassMemberDeclaration()
2340 ParseDeclarationSpecifiers(DS, TemplateInfo, AS, DSC_class, in ParseCXXClassMemberDeclaration()
2348 if (DS.hasTagDefinition() && in ParseCXXClassMemberDeclaration()
2350 DiagnoseMissingSemiAfterTagDefinition(DS, AS, DSC_class, in ParseCXXClassMemberDeclaration()
2360 if (DS.isFriendSpecified()) in ParseCXXClassMemberDeclaration()
2364 Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, DS, TemplateParams); in ParseCXXClassMemberDeclaration()
2365 DS.complete(TheDecl); in ParseCXXClassMemberDeclaration()
2369 ParsingDeclarator DeclaratorInfo(*this, DS, Declarator::MemberContext); in ParseCXXClassMemberDeclaration()
2429 DefinitionKind != FDK_Definition && DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
2447 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseCXXClassMemberDeclaration()
2452 DS.ClearStorageClassSpecs(); in ParseCXXClassMemberDeclaration()
2501 if (DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
2565 DS.containsPlaceholderType()); in ParseCXXClassMemberDeclaration()
2566 } else if (ThisDecl && DS.getStorageClassSpec() == DeclSpec::SCS_static) in ParseCXXClassMemberDeclaration()
2568 Actions.ActOnUninitializedDecl(ThisDecl, DS.containsPlaceholderType()); in ParseCXXClassMemberDeclaration()
2633 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCXXClassMemberDeclaration()
3182 DeclSpec DS(AttrFactory); in ParseMemInitializer() local
3186 ParseDecltypeSpecifier(DS); in ParseMemInitializer()
3208 TemplateTypeTy, DS, IdLoc, in ParseMemInitializer()
3228 TemplateTypeTy, DS, IdLoc, in ParseMemInitializer()