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,
2034 static bool isDeclContextInNamespace(const DeclContext *DC) {
2035 while (!DC->isTranslationUnit()) {
2036 if (DC->isNamespace())
2038 DC = DC->getParent();
2196 ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
2200 return new (C, DC) CXXDeductionGuideDecl(C, DC, StartLoc, ES, NameInfo, T,
2213 ASTContext &C, DeclContext *DC, SourceLocation StartLoc) {
2214 return new (C, DC) RequiresExprBodyDecl(C, DC, StartLoc);
2947 LinkageSpecDecl::LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
2950 : Decl(LinkageSpec, DC, LangLoc), DeclContext(LinkageSpec),
2958 LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, DeclContext *DC,
2963 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces);
2975 UsingDirectiveDecl *UsingDirectiveDecl::Create(ASTContext &C, DeclContext *DC,
2984 return new (C, DC) UsingDirectiveDecl(DC, L, NamespaceLoc, QualifierLoc,
3002 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline,
3006 : NamedDecl(Namespace, DC, IdLoc, Id), DeclContext(Namespace),
3013 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC,
3017 return new (C, DC)
3018 NamespaceDecl(C, DC, Inline, StartLoc, IdLoc, Id, PrevDecl, Nested);
3053 NamespaceAliasDecl *NamespaceAliasDecl::Create(ASTContext &C, DeclContext *DC,
3063 return new (C, DC) NamespaceAliasDecl(C, DC, UsingLoc, AliasLoc, Alias,
3107 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC,
3110 : NamedDecl(K, DC, Loc, Name), redeclarable_base(C),
3139 ConstructorUsingShadowDecl::Create(ASTContext &C, DeclContext *DC,
3142 return new (C, DC) ConstructorUsingShadowDecl(C, DC, Loc, Using, Target,
3188 UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation UL,
3192 return new (C, DC) UsingDecl(DC, UL, QualifierLoc, NameInfo, HasTypename);
3209 UsingEnumDecl *UsingEnumDecl::Create(ASTContext &C, DeclContext *DC,
3215 return new (C, DC)
3216 UsingEnumDecl(DC, EnumType->getType()->getAsTagDecl()->getDeclName(), UL, EL, NL, EnumType);
3232 UsingPackDecl *UsingPackDecl::Create(ASTContext &C, DeclContext *DC,
3236 return new (C, DC, Extra) UsingPackDecl(DC, InstantiatedFrom, UsingDecls);
3254 UnresolvedUsingValueDecl::Create(ASTContext &C, DeclContext *DC,
3259 return new (C, DC) UnresolvedUsingValueDecl(DC, C.DependentTy, UsingLoc,
3282 UnresolvedUsingTypenameDecl::Create(ASTContext &C, DeclContext *DC,
3289 return new (C, DC) UnresolvedUsingTypenameDecl(
3290 DC, UsingLoc, TypenameLoc, QualifierLoc, TargetNameLoc,
3303 UnresolvedUsingIfExistsDecl::Create(ASTContext &Ctx, DeclContext *DC,
3305 return new (Ctx, DC) UnresolvedUsingIfExistsDecl(DC, Loc, Name);
3315 UnresolvedUsingIfExistsDecl::UnresolvedUsingIfExistsDecl(DeclContext *DC,
3318 : NamedDecl(Decl::UnresolvedUsingIfExists, DC, Loc, Name) {}
3324 StaticAssertDecl *StaticAssertDecl::Create(ASTContext &C, DeclContext *DC,
3329 return new (C, DC) StaticAssertDecl(DC, StaticAssertLoc, AssertExpr, Message,
3351 BindingDecl *BindingDecl::Create(ASTContext &C, DeclContext *DC,
3353 return new (C, DC) BindingDecl(DC, IdLoc, Id);
3375 DecompositionDecl *DecompositionDecl::Create(ASTContext &C, DeclContext *DC,
3382 return new (C, DC, Extra)
3383 DecompositionDecl(C, DC, StartLoc, LSquareLoc, T, TInfo, SC, Bindings);
3416 MSPropertyDecl *MSPropertyDecl::Create(ASTContext &C, DeclContext *DC,
3422 return new (C, DC) MSPropertyDecl(DC, L, N, T, TInfo, StartL, Getter, Setter);
3434 MSGuidDecl::MSGuidDecl(DeclContext *DC, QualType T, Parts P)
3435 : ValueDecl(Decl::MSGuid, DC, SourceLocation(), DeclarationName(), T),
3439 DeclContext *DC = C.getTranslationUnitDecl();
3440 return new (C, DC) MSGuidDecl(DC, T, P);
3533 DeclContext *DC,
3536 : ValueDecl(Decl::UnnamedGlobalConstant, DC, SourceLocation(),
3548 DeclContext *DC = C.getTranslationUnitDecl();
3549 return new (C, DC) UnnamedGlobalConstantDecl(C, DC, T, Value);