Home | History | Annotate | Download | only in Sema

Lines Matching refs:CurContext

912     SemanticContext = CurContext;
967 DeclContext *OutermostContext = CurContext;
1021 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1081 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1148 NewClass->setLexicalDeclContext(CurContext);
1149 NewTemplate->setLexicalDeclContext(CurContext);
1177 if (!CurContext->isDependentContext()) {
1186 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc);
1188 CurContext->addDecl(Friend);
2204 // changes to CurContext don't change the set of current
2207 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) {
2593 << /*is definition*/(SC != SC_Extern && !CurContext->isRecord())
2714 Specialization->setLexicalDeclContext(CurContext);
2719 CurContext->addDecl(Specialization);
3660 SubstDecl(TempParm, CurContext,
5928 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) {
5934 if (S.CurContext->isRecord() && !IsPartialSpecialization) {
5949 if (S.CurContext->isRecord() &&
5950 !S.CurContext->Equals(Specialized->getDeclContext())) {
5964 DeclContext *DC = S.CurContext->getEnclosingNamespaceContext();
6452 if (CurContext->isDependentContext()) {
6555 Specialization->setLexicalDeclContext(CurContext);
6562 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
6567 CurContext->addDecl(Friend);
6572 CurContext->addDecl(Specialization);
7250 DeclContext *CurContext = S.CurContext->getRedeclContext();
7252 if (CurContext->isRecord()) {
7267 if (CurContext->Encloses(OrigContext))
7270 if (CurContext->InEnclosingNamespaceSetOf(OrigContext))
7520 Specialization->setLexicalDeclContext(CurContext);
7521 CurContext->addDecl(Specialization);
8597 DeclContext *DC = CurContext;
8600 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(CurContext)) {