Lines Matching defs:entity
1034 /// Given that an entity has protected natural access, check whether
1116 AccessTarget &entity) {
1117 assert(entity.isMemberAccess());
1118 NamedDecl *D = entity.getTargetDecl();
1121 TryDiagnoseProtectedAccess(S, EC, entity))
1173 AccessTarget &entity) {
1175 AccessTarget::SavedInstanceContext _ = entity.saveInstanceContext();
1184 if (entity.isMemberAccess()) {
1185 NamedDecl *D = entity.getTargetDecl();
1187 const CXXRecordDecl *declaringClass = entity.getDeclaringClass();
1189 switch (HasAccess(S, EC, declaringClass, accessSoFar, entity)) {
1194 entity.suppressInstanceContext();
1199 declaringClass == entity.getEffectiveNamingClass())
1200 return diagnoseBadDirectAccess(S, EC, entity);
1209 CXXBasePath &path = *FindBestPath(S, EC, entity, accessSoFar, paths);
1219 // Is the entity accessible when named in the deriving class, as
1232 switch (HasAccess(S, EC, derivingClass, accessSoFar, entity)) {
1236 entity.suppressInstanceContext();
1255 return diagnoseBadDirectAccess(S, EC, entity);
1261 if (entity.isMemberAccess() ||
1275 if (entity.isMemberAccess())
1276 S.Diag(entity.getTargetDecl()->getLocation(),
1334 /// Determines whether the accessed entity is accessible. Public members
1431 /// Checks access to an entity from the given effective context.
1840 AccessTarget entity(Context, AccessTarget::Member,
1844 entity.setDiag(diag::err_access_friend_function)
1851 switch (CheckEffectiveAccess(*this, EC, target->getLocation(), entity)) {