Lines Matching defs:DS

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