Lines Matching refs:getDeclContext
29 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction()
246 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareSimdDeclAttr()
392 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs()
415 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation()
490 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl()
731 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl()
1012 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
1086 Pattern->getDeclContext(), in VisitClassTemplateDecl()
1368 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl()
1539 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), in VisitFunctionDecl()
1562 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl()
1563 LexicalDC = D->getDeclContext(); in VisitFunctionDecl()
1826 D->getDeclContext(), in VisitCXXMethodDecl()
2666 assert(ClassTemplate->getDeclContext()->isRecord() && in VisitClassTemplateSpecializationDecl()
3575 << 1 << Function->getDeclName() << Function->getDeclContext(); in InstantiateFunctionDefinition()
3640 if (CXXRecordDecl *Rec = dyn_cast<CXXRecordDecl>(Function->getDeclContext())) in InstantiateFunctionDefinition()
3749 TemplateDeclInstantiator Instantiator(*this, FromVar->getDeclContext(), in BuildVarTemplateInstantiation()
3825 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
3826 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation()
3834 LookupQualifiedName(Previous, NewVar->getDeclContext(), false); in BuildVariableInstantiation()
3840 NewVar->getDeclContext()->makeDeclVisibleInContext(NewVar); in BuildVariableInstantiation()
3844 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
3870 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
3901 ContextRAII SwitchContext(*this, Var->getDeclContext()); in InstantiateVariableInitializer()
4033 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
4087 << 2 << Var->getDeclName() << Var->getDeclContext(); in InstantiateVariableDefinition()
4162 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
4172 Var = cast_or_null<VarDecl>(SubstDecl(Def, Var->getDeclContext(), in InstantiateVariableDefinition()
4179 TemplateDeclInstantiator Instantiator(*this, Var->getDeclContext(), in InstantiateVariableDefinition()
4619 DeclContext *ParentDC = D->getDeclContext(); in FindInstantiatedDecl()
4713 SubstDecl(D, VarSpec->getDeclContext(), TemplateArgs)); in FindInstantiatedDecl()
4756 if (FD->getFriendObjectKind() && FD->getDeclContext()->isFileContext()){ in FindInstantiatedDecl()
4776 if (ParentDC != D->getDeclContext()) { in FindInstantiatedDecl()
4845 << Context.getTypeDeclType(cast<TypeDecl>(Spec->getDeclContext())); in FindInstantiatedDecl()