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()
367 Context->getDeclContext(), in MightInstantiateTo()
368 Friend->getDeclContext())) in MightInstantiateTo()
483 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
484 Friend->getDeclContext())) in MatchesFriend()
1128 if (D->getDeclContext() == DeclaringClass) in diagnoseBadDirectAccess()
1131 DeclContext *DC = D->getDeclContext(); in diagnoseBadDirectAccess()
1479 DeclContext *DC = D->getDeclContext(); in HandleDelayedAccessCheck()
1759 cast<CXXRecordDecl>(target->getDeclContext()), in CheckFriendAccess()