Home | History | Annotate | Download | only in Sema

Lines Matching refs:CurContext

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