Lines Matching defs:entity
1033 /// Given that an entity has protected natural access, check whether
1115 AccessTarget &entity) {
1116 assert(entity.isMemberAccess());
1117 NamedDecl *D = entity.getTargetDecl();
1120 TryDiagnoseProtectedAccess(S, EC, entity))
1172 AccessTarget &entity) {
1174 AccessTarget::SavedInstanceContext _ = entity.saveInstanceContext();
1183 if (entity.isMemberAccess()) {
1184 NamedDecl *D = entity.getTargetDecl();
1186 const CXXRecordDecl *declaringClass = entity.getDeclaringClass();
1188 switch (HasAccess(S, EC, declaringClass, accessSoFar, entity)) {
1193 entity.suppressInstanceContext();
1198 declaringClass == entity.getEffectiveNamingClass())
1199 return diagnoseBadDirectAccess(S, EC, entity);
1208 CXXBasePath &path = *FindBestPath(S, EC, entity, accessSoFar, paths);
1218 // Is the entity accessible when named in the deriving class, as
1231 switch (HasAccess(S, EC, derivingClass, accessSoFar, entity)) {
1235 entity.suppressInstanceContext();
1254 return diagnoseBadDirectAccess(S, EC, entity);
1260 if (entity.isMemberAccess() ||
1274 if (entity.isMemberAccess())
1275 S.Diag(entity.getTargetDecl()->getLocation(),
1333 /// Determines whether the accessed entity is accessible. Public members
1430 /// Checks access to an entity from the given effective context.
1839 AccessTarget entity(Context, AccessTarget::Member,
1843 entity.setDiag(diag::err_access_friend_function)
1850 switch (CheckEffectiveAccess(*this, EC, target->getLocation(), entity)) {