Lines Matching refs:getDeclContext
29 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction()
256 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs()
279 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation()
344 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl()
592 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl()
864 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
933 Pattern->getDeclContext(), in VisitClassTemplateDecl()
1214 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl()
1367 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), in VisitFunctionDecl()
1390 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl()
1391 LexicalDC = D->getDeclContext(); in VisitFunctionDecl()
1655 D->getDeclContext(), in VisitCXXMethodDecl()
1690 Sema::ContextRAII SavedContext(SemaRef, Inh->getDeclContext()); in VisitCXXMethodDecl()
1698 SemaRef.SubstDecl(Inh, Inh->getDeclContext(), InheritedArgs)); in VisitCXXMethodDecl()
2434 assert(ClassTemplate->getDeclContext()->isRecord() && in VisitClassTemplateSpecializationDecl()
3347 << 1 << Function->getDeclName() << Function->getDeclContext(); in InstantiateFunctionDefinition()
3400 if (CXXRecordDecl *Rec = dyn_cast<CXXRecordDecl>(Function->getDeclContext())) in InstantiateFunctionDefinition()
3509 TemplateDeclInstantiator Instantiator(*this, FromVar->getDeclContext(), in BuildVarTemplateInstantiation()
3598 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
3599 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation()
3607 LookupQualifiedName(Previous, NewVar->getDeclContext(), false); in BuildVariableInstantiation()
3613 NewVar->getDeclContext()->makeDeclVisibleInContext(NewVar); in BuildVariableInstantiation()
3617 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
3642 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
3791 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
3841 << 2 << Var->getDeclName() << Var->getDeclContext(); in InstantiateVariableDefinition()
3904 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
3909 Var = cast_or_null<VarDecl>(SubstDecl(Def, Var->getDeclContext(), in InstantiateVariableDefinition()
3916 TemplateDeclInstantiator Instantiator(*this, Var->getDeclContext(), in InstantiateVariableDefinition()
4356 DeclContext *ParentDC = D->getDeclContext(); in FindInstantiatedDecl()
4426 SubstDecl(D, VarSpec->getDeclContext(), TemplateArgs)); in FindInstantiatedDecl()
4469 if (FD->getFriendObjectKind() && FD->getDeclContext()->isFileContext()){ in FindInstantiatedDecl()
4489 if (ParentDC != D->getDeclContext()) { in FindInstantiatedDecl()
4558 << Context.getTypeDeclType(cast<TypeDecl>(Spec->getDeclContext())); in FindInstantiatedDecl()