Lines Matching defs:DS
220 DeclSpec DS(AttrFactory);
222 SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
227 if (DS.getTypeSpecType() == DeclSpec::TST_decltype_auto ||
229 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc);
233 if (Actions.ActOnCXXNestedNameSpecifierDecltype(SS, DS, CCLoc))
244 DeclSpec DS(AttrFactory);
246 SourceLocation EndLoc = ParsePackIndexingType(DS);
247 if (DS.getTypeSpecType() == DeclSpec::TST_error)
251 DS.getRepAsType().get(), DS.getPackIndexingExpr(), DS.getBeginLoc(),
252 DS.getEllipsisLoc());
275 if (Actions.ActOnCXXNestedNameSpecifierIndexedPack(SS, DS, CCLoc,
1293 DeclSpec &DS) {
1300 DS.SetStorageClassSpec(P.getActions(), DeclSpec::SCS_static, StaticLoc,
1310 DeclSpec &DS) {
1317 DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, ConstexprLoc, PrevSpec,
1326 DeclSpec &DS) {
1331 DS.SetConstexprSpec(ConstexprSpecKind::Consteval, ConstevalLoc, PrevSpec,
1373 DeclSpec DS(AttrFactory);
1374 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::LambdaExpr);
1535 addStaticToLambdaDeclSpecifier(*this, StaticLoc, DS);
1536 addConstexprToLambdaDeclSpecifier(*this, ConstexprLoc, DS);
1537 addConstevalToLambdaDeclSpecifier(*this, ConstevalLoc, DS);
1568 ParseOpenCLQualifiers(DS.getAttributes());
1597 TrailingReturnType, TrailingReturnTypeLoc, &DS),
1628 Actions.ActOnStartOfLambdaDefinition(Intro, D, DS);
1689 DeclSpec DS(AttrFactory);
1690 ParseSpecifierQualifierList(DS, /*AccessSpecifier=*/AS_none,
1694 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
1904 DeclSpec DS(AttrFactory);
1905 ParseDecltypeSpecifier(DS);
1906 if (DS.getTypeSpecType() == TST_error)
1909 TildeLoc, DS);
1920 DeclSpec DS(AttrFactory);
1921 ParsePackIndexingType(DS);
1923 TildeLoc, DS);
2029 Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) {
2030 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
2060 TypeRep.get()->getCanonicalTypeInternal(), DS.getEndLoc(),
2260 DeclSpec DS(AttrFactory);
2261 ParseSpecifierQualifierList(DS, AS_none, DeclSpecContext::DSC_condition);
2264 Declarator DeclaratorInfo(DS, attrs, DeclaratorContext::Condition);
2350 void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) {
2351 DS.SetRangeStart(Tok.getLocation());
2367 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID,
2369 DS.SetRangeEnd(Tok.getAnnotationEndLoc());
2371 DS.Finish(Actions, Policy);
2380 DS.SetTypeSpecError();
2382 DS.SetBitIntType(Loc, ER.get(), PrevSpec, DiagID, Policy);
2385 DS.SetRangeEnd(PrevTokLocation);
2386 DS.Finish(Actions, Policy);
2392 DS.SetTypeSpecWidth(TypeSpecifierWidth::Short, Loc, PrevSpec, DiagID,
2396 DS.SetTypeSpecWidth(TypeSpecifierWidth::Long, Loc, PrevSpec, DiagID,
2400 DS.SetTypeSpecWidth(TypeSpecifierWidth::LongLong, Loc, PrevSpec, DiagID,
2404 DS.SetTypeSpecSign(TypeSpecifierSign::Signed, Loc, PrevSpec, DiagID);
2407 DS.SetTypeSpecSign(TypeSpecifierSign::Unsigned, Loc, PrevSpec, DiagID);
2410 DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec, DiagID, Policy);
2413 DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec, DiagID, Policy);
2416 DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec, DiagID, Policy);
2419 DS.SetTypeSpecType(DeclSpec::TST_int, Loc, PrevSpec, DiagID, Policy);
2422 DS.SetTypeSpecType(DeclSpec::TST_int128, Loc, PrevSpec, DiagID, Policy);
2425 DS.SetTypeSpecType(DeclSpec::TST_BFloat16, Loc, PrevSpec, DiagID, Policy);
2428 DS.SetTypeSpecType(DeclSpec::TST_half, Loc, PrevSpec, DiagID, Policy);
2431 DS.SetTypeSpecType(DeclSpec::TST_float, Loc, PrevSpec, DiagID, Policy);
2434 DS.SetTypeSpecType(DeclSpec::TST_double, Loc, PrevSpec, DiagID, Policy);
2437 DS.SetTypeSpecType(DeclSpec::TST_float16, Loc, PrevSpec, DiagID, Policy);
2440 DS.SetTypeSpecType(DeclSpec::TST_float128, Loc, PrevSpec, DiagID, Policy);
2443 DS.SetTypeSpecType(DeclSpec::TST_ibm128, Loc, PrevSpec, DiagID, Policy);
2446 DS.SetTypeSpecType(DeclSpec::TST_wchar, Loc, PrevSpec, DiagID, Policy);
2449 DS.SetTypeSpecType(DeclSpec::TST_char8, Loc, PrevSpec, DiagID, Policy);
2452 DS.SetTypeSpecType(DeclSpec::TST_char16, Loc, PrevSpec, DiagID, Policy);
2455 DS.SetTypeSpecType(DeclSpec::TST_char32, Loc, PrevSpec, DiagID, Policy);
2458 DS.SetTypeSpecType(DeclSpec::TST_bool, Loc, PrevSpec, DiagID, Policy);
2461 DS.SetTypeSpecType(DeclSpec::TST_accum, Loc, PrevSpec, DiagID, Policy);
2464 DS.SetTypeSpecType(DeclSpec::TST_fract, Loc, PrevSpec, DiagID, Policy);
2467 DS.SetTypeSpecSat(Loc, PrevSpec, DiagID);
2471 DS.SetTypeSpecType(DeclSpec::TST_##ImgType##_t, Loc, PrevSpec, DiagID, \
2477 DS.SetTypeSpecType(DeclSpec::TST_##Name, Loc, PrevSpec, DiagID, Policy); \
2483 DS.SetRangeEnd(ParseDecltypeSpecifier(DS));
2484 return DS.Finish(Actions, Policy);
2487 DS.SetRangeEnd(ParsePackIndexingType(DS));
2488 return DS.Finish(Actions, Policy);
2492 ParseTypeofSpecifier(DS);
2493 DS.Finish(Actions, Policy);
2497 DS.SetRangeEnd(PrevTokLocation);
2498 DS.Finish(Actions, Policy);
2512 bool Parser::ParseCXXTypeSpecifierSeq(DeclSpec &DS, DeclaratorContext Context) {
2513 ParseSpecifierQualifierList(DS, AS_none,
2515 DS.Finish(Actions, Actions.getASTContext().getPrintingPolicy());
2929 DeclSpec DS(AttrFactory);
2931 DS, DeclaratorContext::ConversionId)) // FIXME: ObjectType?
2936 Declarator D(DS, ParsedAttributesView::none(),
3187 DeclSpec DS(AttrFactory);
3188 SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
3190 Actions.getDestructorTypeForDecltype(DS, ObjectType)) {
3315 DeclSpec DS(AttrFactory);
3316 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
3345 ParseSpecifierQualifierList(DS);
3346 DeclaratorInfo.SetSourceRange(DS.getSourceRange());
3352 if (ParseCXXTypeSpecifierSeq(DS))
3355 DeclaratorInfo.SetSourceRange(DS.getSourceRange());
3365 if (ParseCXXTypeSpecifierSeq(DS, DeclaratorContext::CXXNew))
3368 DeclaratorInfo.SetSourceRange(DS.getSourceRange());
4159 DeclSpec DS(AttrFactory);
4160 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),
4164 ParseSpecifierQualifierList(DS);
4235 DeclSpec DS(AttrFactory);
4236 ParseSpecifierQualifierList(DS);
4239 Declarator DeclaratorInfo(DS, ParsedAttributesView::none(),