• Home
  • Raw
  • Download

Lines Matching refs:DS

299 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, unsigned Context) {  in ParseLinkage()  argument
308 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
318 DS.SetRangeStart(SourceLocation()); in ParseLinkage()
319 DS.SetRangeEnd(SourceLocation()); in ParseLinkage()
321 DS.setExternInLinkageSpec(true); in ParseLinkage()
322 ParseExternalDeclaration(attrs, &DS); in ParseLinkage()
328 DS.abort(); in ParseLinkage()
763 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) { in ParseDecltypeSpecifier() argument
776 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
788 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
815 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
838 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
845 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
858 ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
860 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
863 DS.SetTypeSpecError(); in ParseDecltypeSpecifier()
868 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec& DS, in AnnotateExistingDecltypeSpecifier() argument
879 DS.getTypeSpecType() == TST_decltype ? DS.getRepAsExpr() : in AnnotateExistingDecltypeSpecifier()
880 DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() : in AnnotateExistingDecltypeSpecifier()
887 void Parser::ParseUnderlyingTypeSpecifier(DeclSpec &DS) { in ParseUnderlyingTypeSpecifier() argument
911 if (DS.SetTypeSpecType(DeclSpec::TST_underlyingType, StartLoc, PrevSpec, in ParseUnderlyingTypeSpecifier()
915 DS.setTypeofParensRange(T.getRange()); in ParseUnderlyingTypeSpecifier()
959 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
961 EndLocation = ParseDecltypeSpecifier(DS); in ParseBaseTypeSpecifier()
963 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1054 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() local
1055 DS.SetRangeStart(IdLoc); in ParseBaseTypeSpecifier()
1056 DS.SetRangeEnd(EndLocation); in ParseBaseTypeSpecifier()
1057 DS.getTypeSpecScope() = SS; in ParseBaseTypeSpecifier()
1061 DS.SetTypeSpecType(TST_typename, IdLoc, PrevSpec, DiagID, Type, in ParseBaseTypeSpecifier()
1064 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1199 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier() argument
1347 CXXScopeSpec &SS = DS.getTypeSpecScope(); in ParseClassSpecifier()
1356 DS.SetTypeSpecError(); in ParseClassSpecifier()
1435 DS.SetTypeSpecError(); in ParseClassSpecifier()
1477 if (DS.isFriendSpecified()) { in ParseClassSpecifier()
1481 << SourceRange(DS.getFriendSpecLoc()); in ParseClassSpecifier()
1525 TUK = DS.isFriendSpecified() ? Sema::TUK_Friend : Sema::TUK_Declaration; in ParseClassSpecifier()
1567 if (!Name && !TemplateId && (DS.getTypeSpecType() == DeclSpec::TST_error || in ParseClassSpecifier()
1569 if (DS.getTypeSpecType() != DeclSpec::TST_error) { in ParseClassSpecifier()
1651 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation); in ParseClassSpecifier()
1673 getCurScope(), TagType, TUK, StartLoc, DS.getModulePrivateSpecLoc(), in ParseClassSpecifier()
1700 Actions.ActOnTemplatedFriendTag(getCurScope(), DS.getFriendSpecLoc(), in ParseClassSpecifier()
1730 handleDeclspecAlignBeforeClassKey(attrs, DS, TUK); in ParseClassSpecifier()
1735 DS.getModulePrivateSpecLoc(), in ParseClassSpecifier()
1770 Result = DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, in ParseClassSpecifier()
1774 Result = DS.SetTypeSpecType(TagType, StartLoc, in ParseClassSpecifier()
1779 DS.SetTypeSpecError(); in ParseClassSpecifier()
2150 DeclSpec DS(AttrFactory); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq() local
2154 ParseTypeQualifierListOpt(DS, AR_NoAttributesParsed, false); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2155 D.ExtendWithDeclSpec(DS); in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2159 if (DS.getTypeQualifiers() != DeclSpec::TQ_unspecified) { in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2165 if (DS.getTypeQualifiers() & TypeQual) { in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2180 DeclSpecCheck(DeclSpec::TQ_const, "const", DS.getConstSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2182 DeclSpecCheck(DeclSpec::TQ_volatile, "volatile", DS.getVolatileSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2184 DeclSpecCheck(DeclSpec::TQ_restrict, "restrict", DS.getRestrictSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2377 ParsingDeclSpec DS(*this, TemplateDiags); in ParseCXXClassMemberDeclaration() local
2378 DS.takeAttributesFrom(attrs); in ParseCXXClassMemberDeclaration()
2380 DS.SetTypeSpecError(); in ParseCXXClassMemberDeclaration()
2382 ParseDeclarationSpecifiers(DS, TemplateInfo, AS, DSC_class, in ParseCXXClassMemberDeclaration()
2390 if (DS.hasTagDefinition() && in ParseCXXClassMemberDeclaration()
2392 DiagnoseMissingSemiAfterTagDefinition(DS, AS, DSC_class, in ParseCXXClassMemberDeclaration()
2402 if (DS.isFriendSpecified()) in ParseCXXClassMemberDeclaration()
2406 Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, DS, TemplateParams); in ParseCXXClassMemberDeclaration()
2407 DS.complete(TheDecl); in ParseCXXClassMemberDeclaration()
2411 ParsingDeclarator DeclaratorInfo(*this, DS, Declarator::MemberContext); in ParseCXXClassMemberDeclaration()
2483 DefinitionKind != FDK_Definition && DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
2501 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseCXXClassMemberDeclaration()
2506 DS.ClearStorageClassSpecs(); in ParseCXXClassMemberDeclaration()
2551 !DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
2564 if (DS.isFriendSpecified()) { in ParseCXXClassMemberDeclaration()
2637 DS.containsPlaceholderType()); in ParseCXXClassMemberDeclaration()
2638 } else if (ThisDecl && DS.getStorageClassSpec() == DeclSpec::SCS_static) in ParseCXXClassMemberDeclaration()
2640 Actions.ActOnUninitializedDecl(ThisDecl, DS.containsPlaceholderType()); in ParseCXXClassMemberDeclaration()
2704 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCXXClassMemberDeclaration()
3258 DeclSpec DS(AttrFactory); in ParseMemInitializer() local
3262 ParseDecltypeSpecifier(DS); in ParseMemInitializer()
3284 TemplateTypeTy, DS, IdLoc, in ParseMemInitializer()
3304 TemplateTypeTy, DS, IdLoc, in ParseMemInitializer()