• Home
  • Raw
  • Download

Lines Matching refs:Entity

150   AccessTarget(const AccessedEntity &Entity)  in AccessTarget()
151 : AccessedEntity(Entity) { in AccessTarget()
1261 AccessTarget &Entity) { in DiagnoseBadAccess() argument
1262 const CXXRecordDecl *NamingClass = Entity.getNamingClass(); in DiagnoseBadAccess()
1263 const CXXRecordDecl *DeclaringClass = Entity.getDeclaringClass(); in DiagnoseBadAccess()
1264 NamedDecl *D = (Entity.isMemberAccess() ? Entity.getTargetDecl() : nullptr); in DiagnoseBadAccess()
1266 S.Diag(Loc, Entity.getDiag()) in DiagnoseBadAccess()
1267 << (Entity.getAccess() == AS_protected) in DiagnoseBadAccess()
1271 DiagnoseAccessPath(S, EC, Entity); in DiagnoseBadAccess()
1296 AccessTarget &Entity) { in IsMicrosoftUsingDeclarationAccessBug() argument
1298 dyn_cast<UsingShadowDecl>(Entity.getTargetDecl())) { in IsMicrosoftUsingDeclarationAccessBug()
1299 const NamedDecl *OrigDecl = Entity.getTargetDecl()->getUnderlyingDecl(); in IsMicrosoftUsingDeclarationAccessBug()
1300 if (Entity.getTargetDecl()->getAccess() == AS_private && in IsMicrosoftUsingDeclarationAccessBug()
1316 AccessTarget &Entity) { in IsAccessible() argument
1318 const CXXRecordDecl *NamingClass = Entity.getEffectiveNamingClass(); in IsAccessible()
1320 AccessSpecifier UnprivilegedAccess = Entity.getAccess(); in IsAccessible()
1328 switch (HasAccess(S, EC, NamingClass, UnprivilegedAccess, Entity)) { in IsAccessible()
1344 AccessTarget::SavedInstanceContext _ = Entity.saveInstanceContext(); in IsAccessible()
1350 if (Entity.isMemberAccess()) { in IsAccessible()
1353 NamedDecl *Target = Entity.getTargetDecl(); in IsAccessible()
1354 const CXXRecordDecl *DeclaringClass = Entity.getDeclaringClass(); in IsAccessible()
1357 switch (HasAccess(S, EC, DeclaringClass, FinalAccess, Entity)) { in IsAccessible()
1365 Entity.suppressInstanceContext(); in IsAccessible()
1377 assert(Entity.getDeclaringClass() != NamingClass); in IsAccessible()
1381 CXXBasePath *Path = FindBestPath(S, EC, Entity, FinalAccess, Paths); in IsAccessible()
1395 const AccessTarget &Entity) { in DelayDependentAccess() argument
1401 Entity.isMemberAccess(), in DelayDependentAccess()
1402 Entity.getAccess(), in DelayDependentAccess()
1403 Entity.getTargetDecl(), in DelayDependentAccess()
1404 Entity.getNamingClass(), in DelayDependentAccess()
1405 Entity.getBaseObjectType(), in DelayDependentAccess()
1406 Entity.getDiag()); in DelayDependentAccess()
1413 AccessTarget &Entity) { in CheckEffectiveAccess() argument
1414 assert(Entity.getAccess() != AS_public && "called for public access!"); in CheckEffectiveAccess()
1416 switch (IsAccessible(S, EC, Entity)) { in CheckEffectiveAccess()
1418 DelayDependentAccess(S, EC, Loc, Entity); in CheckEffectiveAccess()
1423 IsMicrosoftUsingDeclarationAccessBug(S, Loc, Entity)) in CheckEffectiveAccess()
1425 if (!Entity.isQuiet()) in CheckEffectiveAccess()
1426 DiagnoseBadAccess(S, Loc, EC, Entity); in CheckEffectiveAccess()
1438 AccessTarget &Entity) { in CheckAccess() argument
1440 if (Entity.getAccess() == AS_public) in CheckAccess()
1455 S.DelayedDiagnostics.add(DelayedDiagnostic::makeAccess(Loc, Entity)); in CheckAccess()
1460 switch (CheckEffectiveAccess(S, EC, Loc, Entity)) { in CheckAccess()
1513 AccessTarget Entity(Context, in HandleDependentAccessCheck() local
1518 Entity.setDiag(DD.getDiagnostic()); in HandleDependentAccessCheck()
1519 CheckAccess(*this, Loc, Entity); in HandleDependentAccessCheck()
1521 AccessTarget Entity(Context, in HandleDependentAccessCheck() local
1526 Entity.setDiag(DD.getDiagnostic()); in HandleDependentAccessCheck()
1527 CheckAccess(*this, Loc, Entity); in HandleDependentAccessCheck()
1538 AccessTarget Entity(Context, AccessTarget::Member, E->getNamingClass(), in CheckUnresolvedLookupAccess() local
1540 Entity.setDiag(diag::err_access) << E->getSourceRange(); in CheckUnresolvedLookupAccess()
1542 return CheckAccess(*this, E->getNameLoc(), Entity); in CheckUnresolvedLookupAccess()
1557 AccessTarget Entity(Context, AccessTarget::Member, E->getNamingClass(), in CheckUnresolvedMemberAccess() local
1559 Entity.setDiag(diag::err_access) << E->getSourceRange(); in CheckUnresolvedMemberAccess()
1561 return CheckAccess(*this, E->getMemberLoc(), Entity); in CheckUnresolvedMemberAccess()
1602 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, in CheckDestructorAccess() local
1605 Entity.setDiag(PDiag); // TODO: avoid copy in CheckDestructorAccess()
1607 return CheckAccess(*this, Loc, Entity); in CheckDestructorAccess()
1614 const InitializedEntity &Entity, in CheckConstructorAccess() argument
1620 switch (Entity.getKind()) { in CheckConstructorAccess()
1630 PD << Entity.isInheritedVirtualBase() in CheckConstructorAccess()
1631 << Entity.getBaseSpecifier()->getType() << getSpecialMember(Constructor); in CheckConstructorAccess()
1635 const FieldDecl *Field = cast<FieldDecl>(Entity.getDecl()); in CheckConstructorAccess()
1642 StringRef VarName = Entity.getCapturedVarName(); in CheckConstructorAccess()
1644 PD << VarName << Entity.getType() << getSpecialMember(Constructor); in CheckConstructorAccess()
1650 return CheckConstructorAccess(UseLoc, Constructor, Found, Entity, PD); in CheckConstructorAccess()
1657 const InitializedEntity &Entity, in CheckConstructorAccess() argument
1673 if ((Entity.getKind() == InitializedEntity::EK_Base || in CheckConstructorAccess()
1674 Entity.getKind() == InitializedEntity::EK_Delegating) && in CheckConstructorAccess()
1675 !Entity.getParent()) { in CheckConstructorAccess()
1706 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckAllocationAccess() local
1709 Entity.setDiag(diag::err_access) in CheckAllocationAccess()
1712 return CheckAccess(*this, OpLoc, Entity); in CheckAllocationAccess()
1724 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, in CheckMemberAccess() local
1727 return CheckAccess(*this, UseLoc, Entity); in CheckMemberAccess()
1743 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckMemberOperatorAccess() local
1745 Entity.setDiag(diag::err_access) in CheckMemberOperatorAccess()
1749 return CheckAccess(*this, OpLoc, Entity); in CheckMemberOperatorAccess()
1794 AccessTarget Entity(Context, AccessTarget::Member, NamingClass, Found, in CheckAddressOfMemberAccess() local
1796 Entity.setDiag(diag::err_access) in CheckAddressOfMemberAccess()
1799 return CheckAccess(*this, Ovl->getNameLoc(), Entity); in CheckAddressOfMemberAccess()
1825 AccessTarget Entity(Context, AccessTarget::Base, BaseD, DerivedD, in CheckBaseClassAccess() local
1828 Entity.setDiag(DiagID) << Derived << Base; in CheckBaseClassAccess()
1832 AccessLoc, Entity)) { in CheckBaseClassAccess()
1839 return CheckAccess(*this, AccessLoc, Entity); in CheckBaseClassAccess()
1850 AccessTarget Entity(Context, AccessedEntity::Member, in CheckLookupAccess() local
1853 Entity.setDiag(diag::err_access); in CheckLookupAccess()
1854 CheckAccess(*this, R.getNameLoc(), Entity); in CheckLookupAccess()
1871 AccessTarget Entity(Context, AccessedEntity::Member, Class, in IsSimplyAccessible() local
1874 if (Entity.getAccess() == AS_public) in IsSimplyAccessible()
1878 return ::IsAccessible(*this, EC, Entity) != ::AR_inaccessible; in IsSimplyAccessible()