Lines Matching defs:entity

1021 /// Given that an entity has protected natural access, check whether
1103 AccessTarget &entity) {
1104 assert(entity.isMemberAccess());
1105 NamedDecl *D = entity.getTargetDecl();
1108 TryDiagnoseProtectedAccess(S, EC, entity))
1162 AccessTarget &entity) {
1164 AccessTarget::SavedInstanceContext _ = entity.saveInstanceContext();
1173 if (entity.isMemberAccess()) {
1174 NamedDecl *D = entity.getTargetDecl();
1176 const CXXRecordDecl *declaringClass = entity.getDeclaringClass();
1178 switch (HasAccess(S, EC, declaringClass, accessSoFar, entity)) {
1183 entity.suppressInstanceContext();
1188 declaringClass == entity.getEffectiveNamingClass())
1189 return diagnoseBadDirectAccess(S, EC, entity);
1198 CXXBasePath &path = *FindBestPath(S, EC, entity, accessSoFar, paths);
1208 // Is the entity accessible when named in the deriving class, as
1221 switch (HasAccess(S, EC, derivingClass, accessSoFar, entity)) {
1225 entity.suppressInstanceContext();
1244 return diagnoseBadDirectAccess(S, EC, entity);
1250 if (entity.isMemberAccess() ||
1264 if (entity.isMemberAccess())
1265 S.Diag(entity.getTargetDecl()->getLocation(), diag::note_field_decl);
1321 /// Determines whether the accessed entity is accessible. Public members
1418 /// Checks access to an entity from the given effective context.
1583 AccessTarget entity(Context, AccessTarget::Member, decl->getParent(),
1587 entity.setDiag(PDiag());
1589 switch (CheckAccess(*this, SourceLocation(), entity)) {
1771 AccessTarget entity(Context, AccessTarget::Member,
1775 entity.setDiag(diag::err_access_friend_function)
1781 switch (CheckEffectiveAccess(*this, EC, target->getLocation(), entity)) {