Home | History | Annotate | Download | only in Sema

Lines Matching refs:ParentDC

4356   DeclContext *ParentDC = D->getDeclContext();
4358 // parameters (p below) can have their ParentDC set to the translation-unit
4359 // - thus we can not consistently check if the ParentDC of such a parameter
4362 // find an instantiated decl for (T y) when the ParentDC for y is
4368 // it gets here, always has a FunctionOrMethod as its ParentDC??
4373 if (isa<ParmVarDecl>(D) && !ParentDC->isDependentContext() &&
4378 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext()) ||
4482 if (!ParentDC->isDependentContext())
4485 ParentDC = FindInstantiatedContext(Loc, ParentDC, TemplateArgs);
4486 if (!ParentDC)
4489 if (ParentDC != D->getDeclContext()) {
4497 if (CXXRecordDecl *Spec = dyn_cast<CXXRecordDecl>(ParentDC)) {
4508 ParentDC = Tag->getDecl();
4514 DeclContext::lookup_result Found = ParentDC->lookup(D->getDeclName());
4526 ParentDC->decls_begin(),
4527 ParentDC->decls_end());
4545 << Context.getTypeDeclType(cast<CXXRecordDecl>(ParentDC));