Home | History | Annotate | Download | only in Sema

Lines Matching refs:CurContext

1033     CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1517 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1519 CurContext->addHiddenDecl(ASDecl);
1612 assert(isa<CXXRecordDecl>(CurContext));
1617 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
1776 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth,
2502 if (CurContext->isDependentContext())
2634 if (CurContext->isDependentContext())
2856 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
6082 DeclContext::lookup_result R = CurContext->getRedeclContext()->lookup(II);
6106 CurContext->getRedeclContext()->isTranslationUnit()) {
6120 DeclContext *Parent = CurContext->getRedeclContext();
6133 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline,
6153 DeclContext *Parent = CurContext->getRedeclContext();
6160 CurContext->addDecl(Namespc);
6377 static bool IsUsingDirectiveInToplevelContext(DeclContext *CurContext) {
6378 switch (CurContext->getDeclKind()) {
6382 return IsUsingDirectiveInToplevelContext(CurContext->getParent());
6492 while (CommonAncestor && !CommonAncestor->Encloses(CurContext))
6495 UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc,
6499 if (IsUsingDirectiveInToplevelContext(CurContext) &&
6647 if (!getLangOpts().CPlusPlus11 && CurContext->isRecord()) {
6656 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(OrigRec)) {
6657 if (OrigDC == CurContext) {
6668 << cast<CXXRecordDecl>(CurContext)
6718 if (CurContext->isRecord())
6765 = UsingShadowDecl::Create(Context, CurContext,
6776 CurContext->addDecl(Shadow);
6865 if (!isDeclInScope(D, CurContext, S))
6871 assert(CurContext->isRecord() && "scope not record in instantiation");
6872 LookupQualifiedName(Previous, CurContext);
6889 D = UnresolvedUsingTypenameDecl::Create(Context, CurContext,
6894 D = UnresolvedUsingValueDecl::Create(Context, CurContext, UsingLoc,
6898 D = UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc,
6902 CurContext->addDecl(D);
6932 if (CurContext->isRecord()) {
6934 Context.getTypeDeclType(cast<CXXRecordDecl>(CurContext)));
6997 CXXRecordDecl *TargetClass = cast<CXXRecordDecl>(CurContext);
7020 if (!CurContext->isDependentContext())
7041 if (!CurContext->getRedeclContext()->isRecord())
7093 if (!CurContext->isRecord()) {
7142 if (cast<CXXRecordDecl>(CurContext)->isProvablyNotDerivedFrom(
7144 if (CurContext == NamedContext) {
7154 << cast<CXXRecordDecl>(CurContext)
7203 if (Data.hasDependentBases(cast<CXXRecordDecl>(CurContext)))
7214 << cast<CXXRecordDecl>(CurContext)
7241 if (DiagnoseClassNameShadow(CurContext, NameInfo))
7263 TypeAliasDecl *NewTD = TypeAliasDecl::Create(Context, CurContext, UsingLoc,
7292 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage*/false,
7340 TypeAliasTemplateDecl::Create(Context, CurContext, UsingLoc,
7353 ActOnTypedefNameDecl(S, CurContext, NewTD, Previous, Redeclaration);
7380 if (PrevDecl && !isDeclInScope(PrevDecl, CurContext, S))
7412 NamespaceAliasDecl::Create(Context, CurContext, NamespaceLoc, AliasLoc,
7700 LookupQualifiedName(Result, CurContext);
8009 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(CurContext)) {
8273 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
10178 LinkageSpecDecl *D = LinkageSpecDecl::Create(Context, CurContext,
10180 CurContext->addDecl(D);
10205 Decl *ED = EmptyDecl::Create(Context, CurContext, SemiLoc);
10211 CurContext->addDecl(ED);
10281 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
10380 CurContext->addDecl(ExDecl);
10428 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc,
10432 CurContext->addDecl(Decl);
10503 return FriendDecl::Create(Context, CurContext, LocStart, TSInfo, FriendLoc);
10596 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
10599 CurContext->addDecl(Friend);
10618 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc,
10622 CurContext->addDecl(Friend);
10696 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
10708 CurContext->addDecl(D);
10795 bool isLocal = cast<CXXRecordDecl>(CurContext)->isLocalClass();
10799 DC = CurContext;
10830 if (!Previous.empty() && DC->Equals(CurContext))
10878 if (DC->Equals(CurContext))
10913 DC = CurContext;
10944 assert(ND->getLexicalDeclContext() == CurContext);
10952 if (!CurContext->isDependentContext()) {
10959 FriendDecl *FrD = FriendDecl::Create(Context, CurContext,
10963 CurContext->addDecl(FrD);
11360 CurContext->isDependentContext() ||