Lines Matching refs:CurContext

1281     CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);  in isCurrentClassName()
1302 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()
1866 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier()
1868 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier()
2020 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator()
2025 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator()
2187 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
2193 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
3184 if (CurContext->isDependentContext()) in BuildDelegatingInitializer()
3313 if (CurContext->isDependentContext()) in BuildBaseInitializer()
3506 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc, in BuildImplicitMemberInitializer()
7362 LookupQualifiedName(R, CurContext->getRedeclContext()); in ActOnStartNamespaceDef()
7380 CurContext->getRedeclContext()->isTranslationUnit()) { in ActOnStartNamespaceDef()
7394 DeclContext *Parent = CurContext->getRedeclContext(); in ActOnStartNamespaceDef()
7407 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline, in ActOnStartNamespaceDef()
7427 DeclContext *Parent = CurContext->getRedeclContext(); in ActOnStartNamespaceDef()
7434 CurContext->addDecl(Namespc); in ActOnStartNamespaceDef()
7650 static bool IsUsingDirectiveInToplevelContext(DeclContext *CurContext) { in IsUsingDirectiveInToplevelContext() argument
7651 switch (CurContext->getDeclKind()) { in IsUsingDirectiveInToplevelContext()
7655 return IsUsingDirectiveInToplevelContext(CurContext->getParent()); in IsUsingDirectiveInToplevelContext()
7765 while (CommonAncestor && !CommonAncestor->Encloses(CurContext)) in ActOnUsingDirective()
7768 UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc, in ActOnUsingDirective()
7772 if (IsUsingDirectiveInToplevelContext(CurContext) && in ActOnUsingDirective()
7913 if (!getLangOpts().CPlusPlus11 && CurContext->isRecord()) { in CheckUsingShadowDecl()
7922 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(OrigRec)) { in CheckUsingShadowDecl()
7923 if (OrigDC == CurContext) { in CheckUsingShadowDecl()
7934 << cast<CXXRecordDecl>(CurContext) in CheckUsingShadowDecl()
7996 if (CurContext->isRecord()) in CheckUsingShadowDecl()
8059 isVirtualDirectBase(cast<CXXRecordDecl>(CurContext), in BuildUsingShadowDecl()
8062 Context, CurContext, UD->getLocation(), UD, Orig, IsVirtualBase); in BuildUsingShadowDecl()
8064 Shadow = UsingShadowDecl::Create(Context, CurContext, UD->getLocation(), UD, in BuildUsingShadowDecl()
8078 CurContext->addDecl(Shadow); in BuildUsingShadowDecl()
8256 if (auto *RD = dyn_cast<CXXRecordDecl>(CurContext)) in BuildUsingDeclaration()
8271 if (!isDeclInScope(D, CurContext, S)) in BuildUsingDeclaration()
8277 else if (!CurContext->isFunctionOrMethod() && D->isLocalExternDecl() && in BuildUsingDeclaration()
8284 assert(CurContext->isRecord() && "scope not record in instantiation"); in BuildUsingDeclaration()
8285 LookupQualifiedName(Previous, CurContext); in BuildUsingDeclaration()
8303 D = UnresolvedUsingTypenameDecl::Create(Context, CurContext, in BuildUsingDeclaration()
8308 D = UnresolvedUsingValueDecl::Create(Context, CurContext, UsingLoc, in BuildUsingDeclaration()
8312 CurContext->addDecl(D); in BuildUsingDeclaration()
8318 UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc, in BuildUsingDeclaration()
8321 CurContext->addDecl(UD); in BuildUsingDeclaration()
8343 if (CurContext->isRecord()) { in BuildUsingDeclaration()
8345 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext))); in BuildUsingDeclaration()
8360 dyn_cast<CXXRecordDecl>(CurContext)), in BuildUsingDeclaration()
8387 auto *CurClass = cast<CXXRecordDecl>(CurContext); in BuildUsingDeclaration()
8476 CXXRecordDecl *TargetClass = cast<CXXRecordDecl>(CurContext); in CheckInheritingConstructorUsingDecl()
8512 if (!CurContext->getRedeclContext()->isRecord()) in CheckUsingDeclRedeclaration()
8564 if (!CurContext->isRecord()) { in CheckUsingDeclQualifier()
8677 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom( in CheckUsingDeclQualifier()
8679 if (CurContext == NamedContext) { in CheckUsingDeclQualifier()
8689 << cast<CXXRecordDecl>(CurContext) in CheckUsingDeclQualifier()
8717 if (!cast<CXXRecordDecl>(CurContext)->forallBases(Collect)) in CheckUsingDeclQualifier()
8735 << cast<CXXRecordDecl>(CurContext) in CheckUsingDeclQualifier()
8763 if (DiagnoseClassNameShadow(CurContext, NameInfo)) in ActOnAliasDeclaration()
8785 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc, in ActOnAliasDeclaration()
8818 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage*/false, in ActOnAliasDeclaration()
8866 TypeAliasTemplateDecl::Create(Context, CurContext, UsingLoc, in ActOnAliasDeclaration()
8884 ActOnTypedefNameDecl(S, CurContext, NewTD, Previous, Redeclaration); in ActOnAliasDeclaration()
8929 FilterLookupForScope(PrevR, CurContext, S, /*ConsiderLinkage*/false, in ActOnNamespaceAliasDef()
8962 NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc, in ActOnNamespaceAliasDef()
9556 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(CurContext)) { in ActOnFinishCXXMemberDecls()
10014 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc, in buildSingleCopyAssignRecursively()
12147 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, ExternLoc, in ActOnStartLinkageSpecification()
12150 CurContext->addDecl(D); in ActOnStartLinkageSpecification()
12173 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc); in ActOnEmptyDeclaration()
12179 CurContext->addDecl(ED); in ActOnEmptyDeclaration()
12254 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name, in BuildExceptionDeclaration()
12332 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
12359 CurContext->addDecl(ExDecl); in ActOnExceptionDeclarator()
12410 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc, in BuildStaticAssertDeclaration()
12414 CurContext->addDecl(Decl); in BuildStaticAssertDeclaration()
12486 return FriendDecl::Create(Context, CurContext, in CheckFriendTypeDecl()
12578 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc, in ActOnTemplatedFriendTag()
12581 CurContext->addDecl(Friend); in ActOnTemplatedFriendTag()
12593 << SS.getScopeRep() << SS.getRange() << cast<CXXRecordDecl>(CurContext); in ActOnTemplatedFriendTag()
12602 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc, in ActOnTemplatedFriendTag()
12606 CurContext->addDecl(Friend); in ActOnTemplatedFriendTag()
12680 D = FriendTemplateDecl::Create(Context, CurContext, Loc, in ActOnFriendTypeDecl()
12691 CurContext->addDecl(D); in ActOnFriendTypeDecl()
12764 cast<CXXRecordDecl>(CurContext)->isLocalClass())) { in ActOnFriendFunctionDecl()
12815 DC = CurContext; in ActOnFriendFunctionDecl()
12881 if (DC->Equals(CurContext)) in ActOnFriendFunctionDecl()
12916 DC = CurContext; in ActOnFriendFunctionDecl()
12961 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
12973 if (!CurContext->isDependentContext()) { in ActOnFriendFunctionDecl()
12980 FriendDecl *FrD = FriendDecl::Create(Context, CurContext, in ActOnFriendFunctionDecl()
12984 CurContext->addDecl(FrD); in ActOnFriendFunctionDecl()
13013 << cast<CXXRecordDecl>(CurContext); in ActOnFriendFunctionDecl()
13404 CurContext->isDependentContext() || isUnevaluatedContext()) in MarkVTableUsed()