Lines Matching defs:CurContext

1223     CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1244 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1741 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1743 CurContext->addHiddenDecl(ASDecl);
1871 assert(isa<CXXRecordDecl>(CurContext));
1876 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
2032 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2038 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2817 if (CurContext->isDependentContext())
2946 if (CurContext->isDependentContext())
3165 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
6522 DeclContext::lookup_result R = CurContext->getRedeclContext()->lookup(II);
6546 CurContext->getRedeclContext()->isTranslationUnit()) {
6560 DeclContext *Parent = CurContext->getRedeclContext();
6573 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline,
6593 DeclContext *Parent = CurContext->getRedeclContext();
6600 CurContext->addDecl(Namespc);
6817 static bool IsUsingDirectiveInToplevelContext(DeclContext *CurContext) {
6818 switch (CurContext->getDeclKind()) {
6822 return IsUsingDirectiveInToplevelContext(CurContext->getParent());
6929 while (CommonAncestor && !CommonAncestor->Encloses(CurContext))
6932 UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc,
6936 if (IsUsingDirectiveInToplevelContext(CurContext) &&
7077 if (!getLangOpts().CPlusPlus11 && CurContext->isRecord()) {
7086 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(OrigRec)) {
7087 if (OrigDC == CurContext) {
7098 << cast<CXXRecordDecl>(CurContext)
7154 if (CurContext->isRecord())
7202 = UsingShadowDecl::Create(Context, CurContext,
7215 CurContext->addDecl(Shadow);
7340 if (!isDeclInScope(D, CurContext, S))
7346 assert(CurContext->isRecord() && "scope not record in instantiation");
7347 LookupQualifiedName(Previous, CurContext);
7365 D = UnresolvedUsingTypenameDecl::Create(Context, CurContext,
7370 D = UnresolvedUsingValueDecl::Create(Context, CurContext, UsingLoc,
7374 D = UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc,
7378 CurContext->addDecl(D);
7408 if (CurContext->isRecord()) {
7410 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext)));
7418 CurContext->isRecord());
7490 CXXRecordDecl *TargetClass = cast<CXXRecordDecl>(CurContext);
7513 if (!CurContext->isDependentContext())
7534 if (!CurContext->getRedeclContext()->isRecord())
7586 if (!CurContext->isRecord()) {
7635 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(
7637 if (CurContext == NamedContext) {
7647 << cast<CXXRecordDecl>(CurContext)
7696 if (Data.hasDependentBases(cast<CXXRecordDecl>(CurContext)))
7707 << cast<CXXRecordDecl>(CurContext)
7734 if (DiagnoseClassNameShadow(CurContext, NameInfo))
7756 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc,
7785 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage*/false,
7833 TypeAliasTemplateDecl::Create(Context, CurContext, UsingLoc,
7846 ActOnTypedefNameDecl(S, CurContext, NewTD, Previous, Redeclaration);
7873 if (PrevDecl && !isDeclInScope(PrevDecl, CurContext, S))
7905 NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc,
8658 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(CurContext)) {
9043 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
10989 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext,
10992 CurContext->addDecl(D);
11017 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc);
11023 CurContext->addDecl(ED);
11093 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
11194 CurContext->addDecl(ExDecl);
11242 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc,
11246 CurContext->addDecl(Decl);
11317 return FriendDecl::Create(Context, CurContext, LocStart, TSInfo, FriendLoc);
11407 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
11410 CurContext->addDecl(Friend);
11422 << SS.getScopeRep() << SS.getRange() << cast<CXXRecordDecl>(CurContext);
11431 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
11435 CurContext->addDecl(Friend);
11509 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
11521 CurContext->addDecl(D);
11594 cast<CXXRecordDecl>(CurContext)->isLocalClass())) {
11645 DC = CurContext;
11711 if (DC->Equals(CurContext))
11746 DC = CurContext;
11776 assert(ND->getLexicalDeclContext() == CurContext);
11788 if (!CurContext->isDependentContext()) {
11795 FriendDecl *FrD = FriendDecl::Create(Context, CurContext,
11799 CurContext->addDecl(FrD);
12201 CurContext->isDependentContext() || isUnevaluatedContext())