• Home
  • Raw
  • Download

Lines Matching refs:CurContext

897     SemanticContext = CurContext;  in CheckClassTemplate()
945 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
999 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1064 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1131 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1132 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1160 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1169 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); in CheckClassTemplate()
1171 CurContext->addDecl(Friend); in CheckClassTemplate()
2168 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
2555 << /*is definition*/(SC != SC_Extern && !CurContext->isRecord()) in ActOnVarTemplateSpecialization()
2676 Specialization->setLexicalDeclContext(CurContext); in ActOnVarTemplateSpecialization()
2681 CurContext->addDecl(Specialization); in ActOnVarTemplateSpecialization()
3622 SubstDecl(TempParm, CurContext, in CheckTemplateArgument()
5884 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
5890 if (S.CurContext->isRecord() && !IsPartialSpecialization) { in CheckTemplateSpecializationScope()
5905 if (S.CurContext->isRecord() && in CheckTemplateSpecializationScope()
5906 !S.CurContext->Equals(Specialized->getDeclContext())) { in CheckTemplateSpecializationScope()
5920 DeclContext *DC = S.CurContext->getEnclosingNamespaceContext(); in CheckTemplateSpecializationScope()
6413 if (CurContext->isDependentContext()) { in ActOnClassTemplateSpecialization()
6516 Specialization->setLexicalDeclContext(CurContext); in ActOnClassTemplateSpecialization()
6523 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in ActOnClassTemplateSpecialization()
6528 CurContext->addDecl(Friend); in ActOnClassTemplateSpecialization()
6533 CurContext->addDecl(Specialization); in ActOnClassTemplateSpecialization()
7174 DeclContext *CurContext = S.CurContext->getRedeclContext(); in CheckExplicitInstantiationScope() local
7176 if (CurContext->isRecord()) { in CheckExplicitInstantiationScope()
7191 if (CurContext->Encloses(OrigContext)) in CheckExplicitInstantiationScope()
7194 if (CurContext->InEnclosingNamespaceSetOf(OrigContext)) in CheckExplicitInstantiationScope()
7410 Specialization->setLexicalDeclContext(CurContext); in ActOnExplicitInstantiation()
7411 CurContext->addDecl(Specialization); in ActOnExplicitInstantiation()
8453 DeclContext *DC = CurContext; in IsInsideALocalClassWithinATemplateFunction()
8456 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(CurContext)) { in IsInsideALocalClassWithinATemplateFunction()