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);
1863 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1865 CurContext->addHiddenDecl(ASDecl);
2017 assert(isa<CXXRecordDecl>(CurContext));
2022 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
2184 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2190 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
3181 if (CurContext->isDependentContext())
3310 if (CurContext->isDependentContext())
3530 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
7198 LookupQualifiedName(R, CurContext->getRedeclContext());
7215 CurContext->getRedeclContext()->isTranslationUnit()) {
7229 DeclContext *Parent = CurContext->getRedeclContext();
7242 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline,
7262 DeclContext *Parent = CurContext->getRedeclContext();
7269 CurContext->addDecl(Namespc);
7485 static bool IsUsingDirectiveInToplevelContext(DeclContext *CurContext) {
7486 switch (CurContext->getDeclKind()) {
7490 return IsUsingDirectiveInToplevelContext(CurContext->getParent());
7601 while (CommonAncestor && !CommonAncestor->Encloses(CurContext))
7604 UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc,
7608 if (IsUsingDirectiveInToplevelContext(CurContext) &&
7749 if (!getLangOpts().CPlusPlus11 && CurContext->isRecord()) {
7758 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(OrigRec)) {
7759 if (OrigDC == CurContext) {
7770 << cast<CXXRecordDecl>(CurContext)
7822 if (CurContext->isRecord())
7870 = UsingShadowDecl::Create(Context, CurContext,
7883 CurContext->addDecl(Shadow);
8064 if (!isDeclInScope(D, CurContext, S))
8070 else if (!CurContext->isFunctionOrMethod() && D->isLocalExternDecl() &&
8077 assert(CurContext->isRecord() && "scope not record in instantiation");
8078 LookupQualifiedName(Previous, CurContext);
8096 D = UnresolvedUsingTypenameDecl::Create(Context, CurContext,
8101 D = UnresolvedUsingValueDecl::Create(Context, CurContext, UsingLoc,
8105 CurContext->addDecl(D);
8111 UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc, NameInfo,
8114 CurContext->addDecl(UD);
8136 if (CurContext->isRecord()) {
8138 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext)));
8153 dyn_cast<CXXRecordDecl>(CurContext)),
8251 CXXRecordDecl *TargetClass = cast<CXXRecordDecl>(CurContext);
8287 if (!CurContext->getRedeclContext()->isRecord())
8339 if (!CurContext->isRecord()) {
8436 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(
8438 if (CurContext == NamedContext) {
8448 << cast<CXXRecordDecl>(CurContext)
8476 if (!cast<CXXRecordDecl>(CurContext)->forallBases(Collect))
8494 << cast<CXXRecordDecl>(CurContext)
8522 if (DiagnoseClassNameShadow(CurContext, NameInfo))
8544 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc,
8573 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage*/false,
8621 TypeAliasTemplateDecl::Create(Context, CurContext, UsingLoc,
8639 ActOnTypedefNameDecl(S, CurContext, NewTD, Previous, Redeclaration);
8684 FilterLookupForScope(PrevR, CurContext, S, /*ConsiderLinkage*/false,
8716 NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc,
9456 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(CurContext)) {
9888 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
11911 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext, ExternLoc,
11914 CurContext->addDecl(D);
11937 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc);
11943 CurContext->addDecl(ED);
12013 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
12091 if (isDeclInScope(PrevDecl, CurContext, S)) {
12118 CurContext->addDecl(ExDecl);
12169 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc,
12173 CurContext->addDecl(Decl);
12245 return FriendDecl::Create(Context, CurContext,
12337 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
12340 CurContext->addDecl(Friend);
12352 << SS.getScopeRep() << SS.getRange() << cast<CXXRecordDecl>(CurContext);
12361 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
12365 CurContext->addDecl(Friend);
12439 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
12451 CurContext->addDecl(D);
12524 cast<CXXRecordDecl>(CurContext)->isLocalClass())) {
12575 DC = CurContext;
12641 if (DC->Equals(CurContext))
12676 DC = CurContext;
12721 assert(ND->getLexicalDeclContext() == CurContext);
12733 if (!CurContext->isDependentContext()) {
12740 FriendDecl *FrD = FriendDecl::Create(Context, CurContext,
12744 CurContext->addDecl(FrD);
12773 << cast<CXXRecordDecl>(CurContext);
13187 CurContext->isDependentContext() || isUnevaluatedContext())