Lines Matching defs:CurContext
1868 SemanticContext = CurContext;
1944 DeclContext *OutermostContext = CurContext;
1997 if (!(TUK == TagUseKind::Friend && CurContext->isDependentContext()) &&
2000 : CurContext,
2001 CurContext, KWLoc),
2060 if (!(TUK == TagUseKind::Friend && CurContext->isDependentContext()) &&
2091 !(TUK == TagUseKind::Friend && CurContext->isDependentContext());
2142 NewClass->setLexicalDeclContext(CurContext);
2143 NewTemplate->setLexicalDeclContext(CurContext);
2172 if (!CurContext->isDependentContext()) {
2181 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc);
2183 CurContext->addDecl(Friend);
3605 // changes to CurContext don't change the set of current
3608 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) {
4222 << /*is definition*/ (SC != SC_Extern && !CurContext->isRecord())
4319 Specialization->setLexicalDeclContext(CurContext);
4324 CurContext->addDecl(Specialization);
5412 Params, CurContext,
8102 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) {
8113 DeclContext *DC = S.CurContext->getRedeclContext();
8540 if (CurContext->isDependentContext()) {
8622 Specialization->setLexicalDeclContext(CurContext);
8638 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
8643 CurContext->addDecl(Friend);
8648 CurContext->addDecl(Specialization);
8670 DeclContext *DC = CurContext;
8719 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage=*/false,
8761 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage=*/false,
9593 DeclContext *CurContext = S.CurContext->getRedeclContext();
9595 if (CurContext->isRecord()) {
9610 if (CurContext->Encloses(OrigContext))
9613 if (CurContext->InEnclosingNamespaceSetOf(OrigContext))
9906 Specialization->setLexicalDeclContext(CurContext);
9907 CurContext->addDecl(Specialization);
11177 DeclContext *DC = CurContext;
11180 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(CurContext)) {