Lines Matching defs:DS

283 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, unsigned Context) {
292 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(),
300 // Reset the source range in DS, as the leading "extern"
302 DS.SetRangeStart(SourceLocation());
303 DS.SetRangeEnd(SourceLocation());
305 DS.setExternInLinkageSpec(true);
306 ParseExternalDeclaration(attrs, &DS);
312 DS.abort();
736 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) {
749 DS.SetTypeSpecError();
761 DS.SetTypeSpecError();
785 DS.SetTypeSpecError();
808 DS.SetTypeSpecError();
815 DS.SetTypeSpecError();
828 ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, PrevSpec,
830 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, PrevSpec,
833 DS.SetTypeSpecError();
838 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec& DS,
849 DS.getTypeSpecType() == TST_decltype ? DS.getRepAsExpr() :
850 DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() :
857 void Parser::ParseUnderlyingTypeSpecifier(DeclSpec &DS) {
881 if (DS.SetTypeSpecType(DeclSpec::TST_underlyingType, StartLoc, PrevSpec,
885 DS.setTypeofParensRange(T.getRange());
929 DeclSpec DS(AttrFactory);
931 EndLocation = ParseDecltypeSpecifier(DS);
933 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext);
1024 DeclSpec DS(AttrFactory);
1025 DS.SetRangeStart(IdLoc);
1026 DS.SetRangeEnd(EndLocation);
1027 DS.getTypeSpecScope() = SS;
1031 DS.SetTypeSpecType(TST_typename, IdLoc, PrevSpec, DiagID, Type,
1034 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext);
1166 SourceLocation StartLoc, DeclSpec &DS,
1240 CXXScopeSpec &SS = DS.getTypeSpecScope();
1246 DS.SetTypeSpecError();
1319 DS.SetTypeSpecError();
1361 if (DS.isFriendSpecified()) {
1365 << SourceRange(DS.getFriendSpecLoc());
1409 TUK = DS.isFriendSpecified() ? Sema::TUK_Friend : Sema::TUK_Declaration;
1451 if (!Name && !TemplateId && (DS.getTypeSpecType() == DeclSpec::TST_error ||
1453 if (DS.getTypeSpecType() != DeclSpec::TST_error) {
1534 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation);
1556 getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(),
1582 Actions.ActOnTemplatedFriendTag(getCurScope(), DS.getFriendSpecLoc(),
1615 DS.getModulePrivateSpecLoc(),
1646 Result = DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc,
1650 Result = DS.SetTypeSpecType(TagType, StartLoc,
1655 DS.SetTypeSpecError();
2126 ParsingDeclSpec DS(*this, TemplateDiags);
2127 DS.takeAttributesFrom(attrs);
2129 DS.SetTypeSpecError();
2135 ParseDeclarationSpecifiers(DS, TemplateInfo, AS, DSC_class,
2141 if (DS.hasTagDefinition() &&
2143 DiagnoseMissingSemiAfterTagDefinition(DS, AS, DSC_class,
2153 if (DS.isFriendSpecified())
2157 Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, DS, TemplateParams);
2158 DS.complete(TheDecl);
2162 ParsingDeclarator DeclaratorInfo(*this, DS, Declarator::MemberContext);
2227 DefinitionKind != FDK_Definition && DS.isFriendSpecified()) {
2245 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) {
2250 DS.ClearStorageClassSpecs();
2299 if (DS.isFriendSpecified()) {
2364 DS.containsPlaceholderType());
2365 } else if (ThisDecl && DS.getStorageClassSpec() == DeclSpec::SCS_static)
2367 Actions.ActOnUninitializedDecl(ThisDecl, DS.containsPlaceholderType());
2431 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup);
2879 DeclSpec DS(AttrFactory);
2883 ParseDecltypeSpecifier(DS);
2905 TemplateTypeTy, DS, IdLoc,
2925 TemplateTypeTy, DS, IdLoc,