Lines Matching refs:BaseExpr
457 Sema::ActOnDependentMemberExpr(Expr *BaseExpr, QualType BaseType, in ActOnDependentMemberExpr() argument
477 assert(BaseExpr && "cannot happen with implicit member accesses"); in ActOnDependentMemberExpr()
479 << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange(); in ActOnDependentMemberExpr()
491 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
500 Expr *BaseExpr, in DiagnoseQualifiedMemberReference() argument
507 if (!BaseExpr) in DiagnoseQualifiedMemberReference()
526 bool Sema::CheckQualifiedMemberReference(Expr *BaseExpr, in CheckQualifiedMemberReference() argument
542 if (!BaseExpr && !(*I)->isCXXInstanceMember()) in CheckQualifiedMemberReference()
559 DiagnoseQualifiedMemberReference(*this, BaseExpr, BaseType, SS, in CheckQualifiedMemberReference()
615 Expr *BaseExpr, in LookupMemberExprInRecord() argument
620 SourceRange BaseRange = BaseExpr ? BaseExpr->getSourceRange() : SourceRange(); in LookupMemberExprInRecord()
702 BaseExpr, BaseExpr->getType(), OpLoc, IsArrow, SS, SourceLocation(), in LookupMemberExprInRecord()
711 ExprResult &BaseExpr, bool &IsArrow,
775 BuildFieldReferenceExpr(Sema &S, Expr *BaseExpr, bool IsArrow,
895 BuildMSPropertyRefExpr(Sema &S, Expr *BaseExpr, bool IsArrow, in BuildMSPropertyRefExpr() argument
901 return new (S.Context) MSPropertyRefExpr(BaseExpr, PD, IsArrow, in BuildMSPropertyRefExpr()
961 Sema::BuildMemberReferenceExpr(Expr *BaseExpr, QualType BaseExprType, in BuildMemberReferenceExpr() argument
1004 if (!BaseExpr && CurLSI) { in BuildMemberReferenceExpr()
1036 if (S && BaseExpr && FD && in BuildMemberReferenceExpr()
1038 isa<CXXThisExpr>(BaseExpr->IgnoreImpCasts()) && in BuildMemberReferenceExpr()
1051 if (!IsArrow && BaseExpr) { in BuildMemberReferenceExpr()
1055 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
1076 << (BaseExpr ? BaseExpr->getSourceRange() : SourceRange()); in BuildMemberReferenceExpr()
1087 if ((SS.isSet() || !BaseExpr || in BuildMemberReferenceExpr()
1088 (isa<CXXThisExpr>(BaseExpr) && in BuildMemberReferenceExpr()
1089 cast<CXXThisExpr>(BaseExpr)->isImplicit())) && in BuildMemberReferenceExpr()
1091 CheckQualifiedMemberReference(BaseExpr, BaseType, SS, R)) in BuildMemberReferenceExpr()
1103 BaseExpr, BaseExprType, in BuildMemberReferenceExpr()
1125 if (!BaseExpr) { in BuildMemberReferenceExpr()
1148 BaseExpr = new (Context) CXXThisExpr(Loc, BaseExprType,/*isImplicit=*/true); in BuildMemberReferenceExpr()
1156 return BuildFieldReferenceExpr(*this, BaseExpr, IsArrow, OpLoc, SS, FD, in BuildMemberReferenceExpr()
1160 return BuildMSPropertyRefExpr(*this, BaseExpr, IsArrow, SS, PD, in BuildMemberReferenceExpr()
1167 FoundDecl, BaseExpr, in BuildMemberReferenceExpr()
1171 return BuildMemberExpr(*this, Context, BaseExpr, IsArrow, OpLoc, SS, in BuildMemberReferenceExpr()
1188 return BuildMemberExpr(*this, Context, BaseExpr, IsArrow, OpLoc, SS, in BuildMemberReferenceExpr()
1195 return BuildMemberExpr(*this, Context, BaseExpr, IsArrow, OpLoc, SS, in BuildMemberReferenceExpr()
1202 return BuildMemberExpr(*this, Context, BaseExpr, IsArrow, OpLoc, SS, in BuildMemberReferenceExpr()
1284 ExprResult &BaseExpr, bool &IsArrow, in LookupMemberExpr() argument
1287 assert(BaseExpr.get() && "no base expression"); in LookupMemberExpr()
1290 BaseExpr = S.PerformMemberExprBaseConversion(BaseExpr.get(), IsArrow); in LookupMemberExpr()
1291 if (BaseExpr.isInvalid()) in LookupMemberExpr()
1294 QualType BaseType = BaseExpr.get()->getType(); in LookupMemberExpr()
1320 << BaseType << int(IsArrow) << BaseExpr.get()->getSourceRange() in LookupMemberExpr()
1328 << BaseType << BaseExpr.get()->getSourceRange(); in LookupMemberExpr()
1336 if (LookupMemberExprInRecord(S, R, BaseExpr.get(), RTy, in LookupMemberExpr()
1371 return new (S.Context) ObjCIsaExpr(BaseExpr.get(), IsArrow, MemberLoc, in LookupMemberExpr()
1373 if (ShouldTryAgainWithRedefinitionType(S, BaseExpr)) in LookupMemberExpr()
1374 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1381 BaseExpr.get())) in LookupMemberExpr()
1411 << Member << BaseExpr.get()->getType() in LookupMemberExpr()
1418 << BaseExpr.get()->getSourceRange(); in LookupMemberExpr()
1467 Expr *BaseExp = BaseExpr.get()->IgnoreParenImpCasts(); in LookupMemberExpr()
1490 IV, IV->getUsageType(BaseType), MemberLoc, OpLoc, BaseExpr.get(), in LookupMemberExpr()
1513 BaseExpr = S.DefaultLvalueConversion(BaseExpr.get()); in LookupMemberExpr()
1514 if (BaseExpr.isInvalid()) in LookupMemberExpr()
1518 BaseExpr.get()->getType())); in LookupMemberExpr()
1537 OK_ObjCProperty, MemberLoc, BaseExpr.get()); in LookupMemberExpr()
1556 OK_ObjCProperty, MemberLoc, BaseExpr.get()); in LookupMemberExpr()
1561 if (IsArrow && ShouldTryAgainWithRedefinitionType(S, BaseExpr)) in LookupMemberExpr()
1562 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1574 if (ShouldTryAgainWithRedefinitionType(S, BaseExpr)) in LookupMemberExpr()
1575 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1610 OK_ObjCProperty, MemberLoc, BaseExpr.get()); in LookupMemberExpr()
1613 if (ShouldTryAgainWithRedefinitionType(S, BaseExpr)) in LookupMemberExpr()
1614 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1622 return S.HandleExprPropertyRefExpr(OPT, BaseExpr.get(), OpLoc, MemberName, in LookupMemberExpr()
1635 if (PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(BaseExpr.get())) in LookupMemberExpr()
1638 VK = BaseExpr.get()->getValueKind(); in LookupMemberExpr()
1646 ExtVectorElementExpr(ret, VK, BaseExpr.get(), *Member, MemberLoc); in LookupMemberExpr()
1653 BaseExpr = S.ImpCastExprToType( in LookupMemberExpr()
1654 BaseExpr.get(), S.Context.getObjCSelRedefinitionType(), CK_BitCast); in LookupMemberExpr()
1655 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1673 << BaseType << int(IsArrow) << BaseExpr.get()->getSourceRange() in LookupMemberExpr()
1678 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1686 BaseExpr, S.PDiag(diag::err_member_reference_needs_call), in LookupMemberExpr()
1689 if (BaseExpr.isInvalid()) in LookupMemberExpr()
1691 BaseExpr = S.DefaultFunctionArrayConversion(BaseExpr.get()); in LookupMemberExpr()
1692 return LookupMemberExpr(S, R, BaseExpr, IsArrow, OpLoc, SS, in LookupMemberExpr()
1697 << BaseType << BaseExpr.get()->getSourceRange() << MemberLoc; in LookupMemberExpr()
1761 BuildFieldReferenceExpr(Sema &S, Expr *BaseExpr, bool IsArrow, in BuildFieldReferenceExpr() argument
1772 if (BaseExpr->getObjectKind() == OK_Ordinary) in BuildFieldReferenceExpr()
1773 VK = BaseExpr->getValueKind(); in BuildFieldReferenceExpr()
1786 QualType BaseType = BaseExpr->getType(); in BuildFieldReferenceExpr()
1812 S.PerformObjectMemberConversion(BaseExpr, SS.getScopeRep(), in BuildFieldReferenceExpr()