reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaExprMember.cpp
 1253   BaseExpr = S.PerformMemberExprBaseConversion(BaseExpr.get(), IsArrow);
 1281       if (!S.getLangOpts().CPlusPlus) {
 1282         S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 1290       S.Diag(MemberLoc, diag::err_typecheck_member_reference_arrow)
 1299     if (LookupMemberExprInRecord(S, R, BaseExpr.get(), RTy, OpLoc, IsArrow, SS,
 1313       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1327       if (S.getLangOpts().ObjCAutoRefCount &&
 1334         return new (S.Context) ObjCIsaExpr(BaseExpr.get(), IsArrow, MemberLoc,
 1335                                            OpLoc, S.Context.getObjCClassType());
 1336       if (ShouldTryAgainWithRedefinitionType(S, BaseExpr))
 1337         return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1342     if (S.RequireCompleteType(OpLoc, BaseType,
 1354       if (TypoCorrection Corrected = S.CorrectTypo(
 1358         S.diagnoseTypo(
 1360             S.PDiag(diag::err_typecheck_member_reference_ivar_suggest)
 1380           S.Diag(MemberLoc, diag::err_property_found_suggest)
 1386         S.Diag(MemberLoc, diag::err_typecheck_member_reference_ivar)
 1402     if (S.DiagnoseUseOfDecl(IV, MemberLoc))
 1407       if (ObjCMethodDecl *MD = S.getCurMethodDecl())
 1409       else if (ObjCImpDecl && S.getCurFunctionDecl()) {
 1423       if (!S.getLangOpts().DebuggerSupport) {
 1427             S.Diag(MemberLoc, diag::err_private_ivar_access)
 1431           S.Diag(MemberLoc, diag::err_protected_ivar_access)
 1436     if (S.getLangOpts().ObjCWeak) {
 1444           S.Diag(DE->getLocation(), diag::err_arc_weak_ivar_access);
 1449       if (ObjCMethodDecl *MD = S.getCurMethodDecl()) {
 1453                 !S.IvarBacksCurrentMethodAccessor(IDecl, MD, IV));
 1456         S.Diag(MemberLoc, diag::warn_direct_ivar_access) << IV->getDeclName();
 1459     ObjCIvarRefExpr *Result = new (S.Context) ObjCIvarRefExpr(
 1464       if (!S.isUnevaluatedContext() &&
 1465           !S.Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, MemberLoc))
 1466         S.getCurFunction()->recordUseOfWeak(Result);
 1476       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1482     BaseExpr = S.DefaultLvalueConversion(BaseExpr.get());
 1486     assert(S.Context.hasSameUnqualifiedType(BaseType,
 1496       Selector Sel = S.PP.getSelectorTable().getNullarySelector(Member);
 1498               FindGetterSetterNameDecl(OPT, Member, Sel, S.Context)) {
 1501           if (S.DiagnoseUseOfDecl(PD, MemberLoc))
 1504           return new (S.Context)
 1505               ObjCPropertyRefExpr(PD, S.Context.PseudoObjectTy, VK_LValue,
 1511             SelectorTable::constructSetterSelector(S.PP.getIdentifierTable(),
 1512                                                    S.PP.getSelectorTable(),
 1517                                                      SetterSel, S.Context))
 1520           return new (S.Context)
 1521               ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue,
 1527       if (IsArrow && ShouldTryAgainWithRedefinitionType(S, BaseExpr))
 1528         return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1531       return ExprError(S.Diag(MemberLoc, diag::err_property_not_found)
 1538       ObjCMethodDecl *MD = S.getCurMethodDecl();
 1540         if (ShouldTryAgainWithRedefinitionType(S, BaseExpr))
 1541           return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1548       Selector Sel = S.PP.getSelectorTable().getNullarySelector(Member);
 1556         if (S.DiagnoseUseOfDecl(Getter, MemberLoc))
 1563         SelectorTable::constructSetterSelector(S.PP.getIdentifierTable(),
 1564                                                S.PP.getSelectorTable(),
 1573       if (Setter && S.DiagnoseUseOfDecl(Setter, MemberLoc))
 1577         return new (S.Context) ObjCPropertyRefExpr(
 1578             Getter, Setter, S.Context.PseudoObjectTy, VK_LValue,
 1582       if (ShouldTryAgainWithRedefinitionType(S, BaseExpr))
 1583         return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1586       return ExprError(S.Diag(MemberLoc, diag::err_property_not_found)
 1591     return S.HandleExprPropertyRefExpr(OPT, BaseExpr.get(), OpLoc, MemberName,
 1610     QualType ret = CheckExtVectorComponent(S, BaseType, VK, OpLoc,
 1615         S.Context.getCanonicalType(BaseExpr.get()->getType()).getQualifiers();
 1616     ret = S.Context.getQualifiedType(ret, BaseQ);
 1618     return new (S.Context)
 1625       !S.Context.getObjCSelRedefinitionType()->isObjCSelType()) {
 1626     BaseExpr = S.ImpCastExprToType(
 1627         BaseExpr.get(), S.Context.getObjCSelRedefinitionType(), CK_BitCast);
 1628     return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1645       S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 1651       return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1658   if (S.tryToRecoverWithCall(
 1659           BaseExpr, S.PDiag(diag::err_member_reference_needs_call),
 1664     BaseExpr = S.DefaultFunctionArrayConversion(BaseExpr.get());
 1665     return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS,
 1669   S.Diag(OpLoc, diag::err_typecheck_member_reference_struct_union)