Lines Matching defs:DC
125 DeclContext *DC, SourceLocation StartLoc,
128 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl),
133 DeclContext *DC, SourceLocation StartLoc,
137 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, IdLoc, Id,
148 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC,
152 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TagTypeKind::Class, C, DC, Loc,
2103 static bool isDeclContextInNamespace(const DeclContext *DC) {
2104 while (!DC->isTranslationUnit()) {
2105 if (DC->isNamespace())
2107 DC = DC->getParent();
2292 ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
2298 return new (C, DC) CXXDeductionGuideDecl(
2299 C, DC, StartLoc, ES, NameInfo, T, TInfo, EndLocation, Ctor, Kind,
2306 C, /*DC=*/nullptr, SourceLocation(), ExplicitSpecifier(),
2314 ASTContext &C, DeclContext *DC, SourceLocation StartLoc) {
2315 return new (C, DC) RequiresExprBodyDecl(C, DC, StartLoc);
3068 LinkageSpecDecl::LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
3071 : Decl(LinkageSpec, DC, LangLoc), DeclContext(LinkageSpec),
3079 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, DeclContext *DC,
3084 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces);
3096 UsingDirectiveDecl *UsingDirectiveDecl::Create(ASTContext &C, DeclContext *DC,
3105 return new (C, DC) UsingDirectiveDecl(DC, L, NamespaceLoc, QualifierLoc,
3123 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline,
3127 : NamedDecl(Namespace, DC, IdLoc, Id), DeclContext(Namespace),
3134 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC,
3138 return new (C, DC)
3139 NamespaceDecl(C, DC, Inline, StartLoc, IdLoc, Id, PrevDecl, Nested);
3174 NamespaceAliasDecl *NamespaceAliasDecl::Create(ASTContext &C, DeclContext *DC,
3184 return new (C, DC) NamespaceAliasDecl(C, DC, UsingLoc, AliasLoc, Alias,
3228 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC,
3231 : NamedDecl(K, DC, Loc, Name), redeclarable_base(C),
3260 ConstructorUsingShadowDecl::Create(ASTContext &C, DeclContext *DC,
3263 return new (C, DC) ConstructorUsingShadowDecl(C, DC, Loc, Using, Target,
3309 UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation UL,
3313 return new (C, DC) UsingDecl(DC, UL, QualifierLoc, NameInfo, HasTypename);
3330 UsingEnumDecl *UsingEnumDecl::Create(ASTContext &C, DeclContext *DC,
3336 return new (C, DC)
3337 UsingEnumDecl(DC, EnumType->getType()->getAsTagDecl()->getDeclName(), UL, EL, NL, EnumType);
3353 UsingPackDecl *UsingPackDecl::Create(ASTContext &C, DeclContext *DC,
3357 return new (C, DC, Extra) UsingPackDecl(DC, InstantiatedFrom, UsingDecls);
3374 UnresolvedUsingValueDecl::Create(ASTContext &C, DeclContext *DC,
3379 return new (C, DC) UnresolvedUsingValueDecl(DC, C.DependentTy, UsingLoc,
3402 UnresolvedUsingTypenameDecl::Create(ASTContext &C, DeclContext *DC,
3409 return new (C, DC) UnresolvedUsingTypenameDecl(
3410 DC, UsingLoc, TypenameLoc, QualifierLoc, TargetNameLoc,
3423 UnresolvedUsingIfExistsDecl::Create(ASTContext &Ctx, DeclContext *DC,
3425 return new (Ctx, DC) UnresolvedUsingIfExistsDecl(DC, Loc, Name);
3435 UnresolvedUsingIfExistsDecl::UnresolvedUsingIfExistsDecl(DeclContext *DC,
3438 : NamedDecl(Decl::UnresolvedUsingIfExists, DC, Loc, Name) {}
3444 StaticAssertDecl *StaticAssertDecl::Create(ASTContext &C, DeclContext *DC,
3449 return new (C, DC) StaticAssertDecl(DC, StaticAssertLoc, AssertExpr, Message,
3471 BindingDecl *BindingDecl::Create(ASTContext &C, DeclContext *DC,
3474 return new (C, DC) BindingDecl(DC, IdLoc, Id, T);
3503 DecompositionDecl *DecompositionDecl::Create(ASTContext &C, DeclContext *DC,
3510 return new (C, DC, Extra)
3511 DecompositionDecl(C, DC, StartLoc, LSquareLoc, T, TInfo, SC, Bindings);
3544 MSPropertyDecl *MSPropertyDecl::Create(ASTContext &C, DeclContext *DC,
3550 return new (C, DC) MSPropertyDecl(DC, L, N, T, TInfo, StartL, Getter, Setter);
3562 MSGuidDecl::MSGuidDecl(DeclContext *DC, QualType T, Parts P)
3563 : ValueDecl(Decl::MSGuid, DC, SourceLocation(), DeclarationName(), T),
3567 DeclContext *DC = C.getTranslationUnitDecl();
3568 return new (C, DC) MSGuidDecl(DC, T, P);
3661 DeclContext *DC,
3664 : ValueDecl(Decl::UnnamedGlobalConstant, DC, SourceLocation(),
3676 DeclContext *DC = C.getTranslationUnitDecl();
3677 return new (C, DC) UnnamedGlobalConstantDecl(C, DC, T, Value);