Lines Matching refs:CurContext
912 SemanticContext = CurContext; in CheckClassTemplate()
967 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
1021 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1081 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1148 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1149 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1177 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1186 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); in CheckClassTemplate()
1188 CurContext->addDecl(Friend); in CheckClassTemplate()
2207 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
2593 << /*is definition*/(SC != SC_Extern && !CurContext->isRecord()) in ActOnVarTemplateSpecialization()
2714 Specialization->setLexicalDeclContext(CurContext); in ActOnVarTemplateSpecialization()
2719 CurContext->addDecl(Specialization); in ActOnVarTemplateSpecialization()
3660 SubstDecl(TempParm, CurContext, in CheckTemplateArgument()
5928 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
5934 if (S.CurContext->isRecord() && !IsPartialSpecialization) { in CheckTemplateSpecializationScope()
5949 if (S.CurContext->isRecord() && in CheckTemplateSpecializationScope()
5950 !S.CurContext->Equals(Specialized->getDeclContext())) { in CheckTemplateSpecializationScope()
5964 DeclContext *DC = S.CurContext->getEnclosingNamespaceContext(); in CheckTemplateSpecializationScope()
6452 if (CurContext->isDependentContext()) { in ActOnClassTemplateSpecialization()
6555 Specialization->setLexicalDeclContext(CurContext); in ActOnClassTemplateSpecialization()
6562 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in ActOnClassTemplateSpecialization()
6567 CurContext->addDecl(Friend); in ActOnClassTemplateSpecialization()
6572 CurContext->addDecl(Specialization); in ActOnClassTemplateSpecialization()
7250 DeclContext *CurContext = S.CurContext->getRedeclContext(); in CheckExplicitInstantiationScope() local
7252 if (CurContext->isRecord()) { in CheckExplicitInstantiationScope()
7267 if (CurContext->Encloses(OrigContext)) in CheckExplicitInstantiationScope()
7270 if (CurContext->InEnclosingNamespaceSetOf(OrigContext)) in CheckExplicitInstantiationScope()
7520 Specialization->setLexicalDeclContext(CurContext); in ActOnExplicitInstantiation()
7521 CurContext->addDecl(Specialization); in ActOnExplicitInstantiation()
8597 DeclContext *DC = CurContext; in IsInsideALocalClassWithinATemplateFunction()
8600 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(CurContext)) { in IsInsideALocalClassWithinATemplateFunction()