Lines Matching refs:DS

350 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) {
359 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(),
370 // Reset the source range in DS, as the leading "extern"
372 DS.SetRangeStart(SourceLocation());
373 DS.SetRangeEnd(SourceLocation());
375 DS.setExternInLinkageSpec(true);
376 ParseExternalDeclaration(DeclAttrs, DeclSpecAttrs, &DS);
382 DS.abort();
1049 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) {
1062 DS.setTypeArgumentRange(SourceRange(SourceLocation(), EndLoc));
1065 DS.SetTypeSpecError();
1077 DS.SetTypeSpecError();
1104 DS.SetTypeSpecError();
1126 DS.setTypeArgumentRange(T.getRange());
1128 DS.SetTypeSpecError();
1135 DS.SetTypeSpecError();
1147 if (Result.get() ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc,
1149 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc,
1152 DS.SetTypeSpecError();
1157 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec &DS,
1163 if (DS.getTypeSpecType() == TST_error) {
1175 DS.getTypeSpecType() == TST_decltype ? DS.getRepAsExpr()
1176 : DS.getTypeSpecType() == TST_decltype_auto ? ExprResult()
1194 bool Parser::MaybeParseTypeTransformTypeSpecifier(DeclSpec &DS) {
1219 if (DS.SetTypeSpecType(TypeTransformTST, StartLoc, PrevSpec, DiagID,
1223 DS.setTypeArgumentRange(T.getRange());
1271 DeclSpec DS(AttrFactory);
1273 EndLocation = ParseDecltypeSpecifier(DS);
1275 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
1360 DeclSpec DS(AttrFactory);
1361 DS.SetRangeStart(IdLoc);
1362 DS.SetRangeEnd(EndLocation);
1363 DS.getTypeSpecScope() = SS;
1367 DS.SetTypeSpecType(TST_typename, IdLoc, PrevSpec, DiagID, Type,
1370 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
1528 SourceLocation StartLoc, DeclSpec &DS,
1677 CXXScopeSpec &SS = DS.getTypeSpecScope();
1688 DS.SetTypeSpecError();
1783 DS.SetTypeSpecError();
1829 if (DS.isFriendSpecified()) {
1833 << SourceRange(DS.getFriendSpecLoc());
1881 TUK = DS.isFriendSpecified() ? Sema::TUK_Friend : Sema::TUK_Declaration;
1916 (DS.getTypeSpecType() == DeclSpec::TST_error ||
1918 if (DS.getTypeSpecType() != DeclSpec::TST_error) {
1992 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation);
2014 getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(),
2039 getCurScope(), DS.getFriendSpecLoc(), TagType, StartLoc, SS, Name,
2067 stripTypeAttributesOffDeclSpec(attrs, DS, TUK);
2072 DS.getModulePrivateSpecLoc(), TParams, Owned, IsDependent,
2116 DS.SetTypeSpecError();
2130 Result = DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc,
2134 Result = DS.SetTypeSpecType(
2138 DS.SetTypeSpecError();
2554 DeclSpec DS(AttrFactory);
2559 DS, AR_NoAttributesParsed, false,
2561 Actions.CodeCompleteFunctionQualifiers(DS, D, &VS);
2563 D.ExtendWithDeclSpec(DS);
2567 if (DS.getTypeQualifiers() != DeclSpec::TQ_unspecified) {
2583 DS.forEachQualifier(DeclSpecCheck);
2787 ParsingDeclSpec DS(*this, TemplateDiags);
2788 DS.takeAttributesFrom(DeclSpecAttrs);
2791 DS.SetTypeSpecError();
2803 ParseDeclarationSpecifiers(DS, TemplateInfo, AS, DeclSpecContext::DSC_class,
2814 if (DS.hasTagDefinition() &&
2816 DiagnoseMissingSemiAfterTagDefinition(DS, AS, DeclSpecContext::DSC_class,
2826 if (DS.isFriendSpecified())
2831 getCurScope(), AS, DS, DeclAttrs, TemplateParams, false, AnonRecord);
2832 DS.complete(TheDecl);
2840 ParsingDeclarator DeclaratorInfo(*this, DS, DeclAttrs,
2930 DS.isFriendSpecified()) {
2948 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) {
2953 DS.ClearStorageClassSpecs();
2999 !DS.isFriendSpecified()) {
3016 if (DS.isFriendSpecified()) {
3096 } else if (ThisDecl && DS.getStorageClassSpec() == DeclSpec::SCS_static)
3166 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
3764 DeclSpec DS(AttrFactory);
3778 ParseDecltypeSpecifier(DS);
3810 TemplateTypeTy.get(), DS, IdLoc,
3845 ConstructorDecl, getCurScope(), SS, II, TemplateTypeTy.get(), DS, IdLoc,