Lines Matching refs:DS

361 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) {  in ParseLinkage()  argument
370 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
383 DS.SetRangeStart(SourceLocation()); in ParseLinkage()
384 DS.SetRangeEnd(SourceLocation()); in ParseLinkage()
386 DS.setExternInLinkageSpec(true); in ParseLinkage()
387 ParseExternalDeclaration(DeclAttrs, DeclSpecAttrs, &DS); in ParseLinkage()
393 DS.abort(); in ParseLinkage()
1120 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) { in ParseDecltypeSpecifier() argument
1133 DS.setTypeArgumentRange(SourceRange(SourceLocation(), EndLoc)); in ParseDecltypeSpecifier()
1136 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1148 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1175 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1197 DS.setTypeArgumentRange(T.getRange()); in ParseDecltypeSpecifier()
1199 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1206 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1218 if (Result.get() ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, in ParseDecltypeSpecifier()
1220 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, in ParseDecltypeSpecifier()
1223 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
1228 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec &DS, in AnnotateExistingDecltypeSpecifier() argument
1234 if (DS.getTypeSpecType() == TST_error) { in AnnotateExistingDecltypeSpecifier()
1246 DS.getTypeSpecType() == TST_decltype ? DS.getRepAsExpr() in AnnotateExistingDecltypeSpecifier()
1247 : DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() in AnnotateExistingDecltypeSpecifier()
1254 SourceLocation Parser::ParsePackIndexingType(DeclSpec &DS) { in ParsePackIndexingType() argument
1272 DS.setTypeArgumentRange(SourceRange(SourceLocation(), EndLoc)); in ParsePackIndexingType()
1275 DS.SetTypeSpecError(); in ParsePackIndexingType()
1278 DS.SetTypeSpecType(DeclSpec::TST_typename_pack_indexing, StartLoc, PrevSpec, in ParsePackIndexingType()
1284 DS.SetTypeSpecError(); in ParsePackIndexingType()
1291 DS.SetTypeSpecError(); in ParsePackIndexingType()
1303 DS.SetRangeStart(StartLoc); in ParsePackIndexingType()
1304 DS.SetRangeEnd(T.getCloseLocation()); in ParsePackIndexingType()
1312 DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, PrevSpec, DiagID, Type, in ParsePackIndexingType()
1314 DS.SetPackIndexingExpr(EllipsisLoc, IndexExpr.get()); in ParsePackIndexingType()
1352 bool Parser::MaybeParseTypeTransformTypeSpecifier(DeclSpec &DS) { in MaybeParseTypeTransformTypeSpecifier() argument
1377 if (DS.SetTypeSpecType(TypeTransformTST, StartLoc, PrevSpec, DiagID, in MaybeParseTypeTransformTypeSpecifier()
1381 DS.setTypeArgumentRange(T.getRange()); in MaybeParseTypeTransformTypeSpecifier()
1429 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
1431 EndLocation = ParseDecltypeSpecifier(DS); in ParseBaseTypeSpecifier()
1433 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(), in ParseBaseTypeSpecifier()
1439 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
1440 ParsePackIndexingType(DS); in ParseBaseTypeSpecifier()
1441 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(), in ParseBaseTypeSpecifier()
1528 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
1529 DS.SetRangeStart(IdLoc); in ParseBaseTypeSpecifier()
1530 DS.SetRangeEnd(EndLocation); in ParseBaseTypeSpecifier()
1531 DS.getTypeSpecScope() = SS; in ParseBaseTypeSpecifier()
1535 DS.SetTypeSpecType(TST_typename, IdLoc, PrevSpec, DiagID, Type, in ParseBaseTypeSpecifier()
1538 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(), in ParseBaseTypeSpecifier()
1707 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier() argument
1865 CXXScopeSpec &SS = DS.getTypeSpecScope(); in ParseClassSpecifier()
1879 DS.SetTypeSpecError(); in ParseClassSpecifier()
1926 DS.SetRangeEnd(NameLoc); in ParseClassSpecifier()
1971 DS.SetTypeSpecError(); in ParseClassSpecifier()
2017 if (DS.isFriendSpecified()) { in ParseClassSpecifier()
2021 << SourceRange(DS.getFriendSpecLoc()); in ParseClassSpecifier()
2078 TUK = DS.isFriendSpecified() ? TagUseKind::Friend : TagUseKind::Declaration; in ParseClassSpecifier()
2117 (DS.getTypeSpecType() == DeclSpec::TST_error || in ParseClassSpecifier()
2119 if (DS.getTypeSpecType() != DeclSpec::TST_error) { in ParseClassSpecifier()
2195 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation); in ParseClassSpecifier()
2217 getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(), in ParseClassSpecifier()
2243 getCurScope(), DS.getFriendSpecLoc(), TagType, StartLoc, SS, Name, in ParseClassSpecifier()
2272 stripTypeAttributesOffDeclSpec(attrs, DS, TUK); in ParseClassSpecifier()
2277 DS.getModulePrivateSpecLoc(), TParams, Owned, IsDependent, in ParseClassSpecifier()
2321 DS.SetTypeSpecError(); in ParseClassSpecifier()
2335 Result = DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, in ParseClassSpecifier()
2339 Result = DS.SetTypeSpecType( in ParseClassSpecifier()
2343 DS.SetTypeSpecError(); in ParseClassSpecifier()
2763 DeclSpec DS(AttrFactory); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq() local
2768 DS, AR_NoAttributesParsed, false, in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2770 Actions.CodeCompletion().CodeCompleteFunctionQualifiers(DS, D, &VS); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2772 D.ExtendWithDeclSpec(DS); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2776 if (DS.getTypeQualifiers() != DeclSpec::TQ_unspecified) { in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2792 DS.forEachQualifier(DeclSpecCheck); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2995 ParsingDeclSpec DS(*this, TemplateDiags); in ParseCXXClassMemberDeclaration() local
2996 DS.takeAttributesFrom(DeclSpecAttrs); in ParseCXXClassMemberDeclaration()
2999 DS.SetTypeSpecError(); in ParseCXXClassMemberDeclaration()
3011 ParseDeclarationSpecifiers(DS, TemplateInfo, AS, DeclSpecContext::DSC_class, in ParseCXXClassMemberDeclaration()
3022 if (DS.hasTagDefinition() && in ParseCXXClassMemberDeclaration()
3024 DiagnoseMissingSemiAfterTagDefinition(DS, AS, DeclSpecContext::DSC_class, in ParseCXXClassMemberDeclaration()
3034 if (DS.isFriendSpecified()) in ParseCXXClassMemberDeclaration()
3039 getCurScope(), AS, DS, DeclAttrs, TemplateParams, false, AnonRecord); in ParseCXXClassMemberDeclaration()
3041 DS.complete(TheDecl); in ParseCXXClassMemberDeclaration()
3049 if (DS.hasTagDefinition()) in ParseCXXClassMemberDeclaration()
3050 Actions.ActOnDefinedDeclarationSpecifier(DS.getRepAsDecl()); in ParseCXXClassMemberDeclaration()
3052 ParsingDeclarator DeclaratorInfo(*this, DS, DeclAttrs, in ParseCXXClassMemberDeclaration()
3143 DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
3161 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseCXXClassMemberDeclaration()
3166 DS.ClearStorageClassSpecs(); in ParseCXXClassMemberDeclaration()
3212 !DS.isFriendSpecified() && in ParseCXXClassMemberDeclaration()
3230 if (DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
3392 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCXXClassMemberDeclaration()
4005 DeclSpec DS(AttrFactory); in ParseMemInitializer() local
4019 ParseDecltypeSpecifier(DS); in ParseMemInitializer()
4023 ParsePackIndexingType(DS); in ParseMemInitializer()
4055 TemplateTypeTy.get(), DS, IdLoc, in ParseMemInitializer()
4091 ConstructorDecl, getCurScope(), SS, II, TemplateTypeTy.get(), DS, IdLoc, in ParseMemInitializer()