Lines Matching defs:CurContext

902     SemanticContext = CurContext;
940 DeclContext *OutermostContext = CurContext;
978 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1030 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1096 NewClass->setLexicalDeclContext(CurContext);
1097 NewTemplate->setLexicalDeclContext(CurContext);
1121 if (!CurContext->isDependentContext()) {
1129 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
1134 CurContext->addDecl(Friend);
2038 // changes to CurContext don't change the set of current
2041 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) {
2420 << /*is definition*/(SC != SC_Extern && !CurContext->isRecord())
2543 Specialization->setLexicalDeclContext(CurContext);
2548 CurContext->addDecl(Specialization);
3462 SubstDecl(TempParm, CurContext,
5567 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) {
5573 if (S.CurContext->isRecord() && !IsPartialSpecialization) {
5588 if (S.CurContext->isRecord() &&
5589 !S.CurContext->Equals(Specialized->getDeclContext())) {
5604 DeclContext *DC = S.CurContext->getEnclosingNamespaceContext();
6157 Specialization->setLexicalDeclContext(CurContext);
6164 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
6169 CurContext->addDecl(Friend);
6174 CurContext->addDecl(Specialization);
6821 DeclContext *CurContext = S.CurContext->getRedeclContext();
6823 if (CurContext->isRecord()) {
6838 if (CurContext->Encloses(OrigContext))
6841 if (CurContext->InEnclosingNamespaceSetOf(OrigContext))
7040 Specialization->setLexicalDeclContext(CurContext);
7041 CurContext->addDecl(Specialization);
8039 DeclContext *DC = CurContext;
8042 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(CurContext)) {