Home | History | Annotate | Download | only in Sema

Lines Matching refs:CurContext

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