Lines Matching refs:getDeclContext
66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass()
71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass()
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); in FindDeclaringClass()
109 DC = Record->getDeclContext(); in EffectiveContext()
116 DC = Function->getDeclContext(); in EffectiveContext()
265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
368 Context->getDeclContext(), in MightInstantiateTo()
369 Friend->getDeclContext())) in MightInstantiateTo()
478 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
479 Friend->getDeclContext())) in MatchesFriend()
1123 if (D->getDeclContext() == DeclaringClass) in diagnoseBadDirectAccess()
1126 DeclContext *DC = D->getDeclContext(); in diagnoseBadDirectAccess()
1474 DeclContext *DC = D->getDeclContext(); in HandleDelayedAccessCheck()
1766 cast<CXXRecordDecl>(target->getDeclContext()), in CheckFriendAccess()