Lines Matching refs:NamingClass
157 CXXRecordDecl *NamingClass, in AccessTarget()
160 : AccessedEntity(Context.getDiagAllocator(), Member, NamingClass, in AccessTarget()
600 const CXXRecordDecl *NamingClass; member
609 const CXXRecordDecl *NamingClass) in ProtectedFriendContext()
610 : S(S), EC(EC), NamingClass(NamingClass), in ProtectedFriendContext()
612 NamingClass->isDependentContext()), in ProtectedFriendContext()
638 if (Cur == NamingClass) in findFriendship()
641 if (CheckDependent && MightInstantiateTo(Cur, NamingClass)) in findFriendship()
712 const CXXRecordDecl *NamingClass) { in GetProtectedFriendKind() argument
715 assert(NamingClass->getCanonicalDecl() == NamingClass); in GetProtectedFriendKind()
720 if (!InstanceContext) return GetFriendKind(S, EC, NamingClass); in GetProtectedFriendKind()
722 ProtectedFriendContext PRC(S, EC, InstanceContext, NamingClass); in GetProtectedFriendKind()
730 const CXXRecordDecl *NamingClass, in HasAccess() argument
733 assert(NamingClass->getCanonicalDecl() == NamingClass && in HasAccess()
749 if (ECRecord == NamingClass) in HasAccess()
752 if (EC.isDependent() && MightInstantiateTo(ECRecord, NamingClass)) in HasAccess()
758 switch (IsDerivedFromInclusive(ECRecord, NamingClass)) { in HasAccess()
812 if (NamingClass == ECRecord) return AR_accessible; in HasAccess()
852 switch (GetProtectedFriendKind(S, EC, InstanceContext, NamingClass)) { in HasAccess()
860 switch (GetFriendKind(S, EC, NamingClass)) { in HasAccess()
1026 const CXXRecordDecl *NamingClass = Target.getEffectiveNamingClass(); in TryDiagnoseProtectedAccess() local
1031 switch (IsDerivedFromInclusive(ECRecord, NamingClass)) { in TryDiagnoseProtectedAccess()
1051 if (NamingClass == ECRecord) continue; in TryDiagnoseProtectedAccess()
1262 const CXXRecordDecl *NamingClass = Entity.getNamingClass(); in DiagnoseBadAccess() local
1269 << S.Context.getTypeDeclType(NamingClass) in DiagnoseBadAccess()
1318 const CXXRecordDecl *NamingClass = Entity.getEffectiveNamingClass(); in IsAccessible() local
1328 switch (HasAccess(S, EC, NamingClass, UnprivilegedAccess, Entity)) { in IsAccessible()
1371 if (DeclaringClass == NamingClass) in IsAccessible()
1377 assert(Entity.getDeclaringClass() != NamingClass); in IsAccessible()
1504 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(NamingD); in HandleDependentAccessCheck() local
1515 NamingClass, in HandleDependentAccessCheck()
1599 CXXRecordDecl *NamingClass = Dtor->getParent(); in CheckDestructorAccess() local
1600 if (ObjectTy.isNull()) ObjectTy = Context.getTypeDeclType(NamingClass); in CheckDestructorAccess()
1602 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, in CheckDestructorAccess()
1663 CXXRecordDecl *NamingClass = Constructor->getParent(); in CheckConstructorAccess() local
1683 ObjectClass = NamingClass; in CheckConstructorAccess()
1687 Context, AccessTarget::Member, NamingClass, in CheckConstructorAccess()
1698 CXXRecordDecl *NamingClass, in CheckAllocationAccess() argument
1702 !NamingClass || in CheckAllocationAccess()
1706 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckAllocationAccess()
1717 CXXRecordDecl *NamingClass, in CheckMemberAccess() argument
1720 !NamingClass || in CheckMemberAccess()
1724 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, in CheckMemberAccess()
1741 CXXRecordDecl *NamingClass = cast<CXXRecordDecl>(RT->getDecl()); in CheckMemberOperatorAccess() local
1743 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckMemberOperatorAccess()
1792 CXXRecordDecl *NamingClass = Ovl->getNamingClass(); in CheckAddressOfMemberAccess() local
1794 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckAddressOfMemberAccess()