Home
last modified time | relevance | path

Searched refs:BaseExpr (Results 1 – 14 of 14) sorted by relevance

/external/clang/lib/Sema/
DSemaExprMember.cpp442 Sema::ActOnDependentMemberExpr(Expr *BaseExpr, QualType BaseType, in ActOnDependentMemberExpr() argument
462 assert(BaseExpr && "cannot happen with implicit member accesses"); in ActOnDependentMemberExpr()
464 << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange(); in ActOnDependentMemberExpr()
476 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
485 Expr *BaseExpr, in DiagnoseQualifiedMemberReference() argument
492 if (!BaseExpr) in DiagnoseQualifiedMemberReference()
511 bool Sema::CheckQualifiedMemberReference(Expr *BaseExpr, in CheckQualifiedMemberReference() argument
527 if (!BaseExpr && !(*I)->isCXXInstanceMember()) in CheckQualifiedMemberReference()
544 DiagnoseQualifiedMemberReference(*this, BaseExpr, BaseType, SS, in CheckQualifiedMemberReference()
674 ExprResult &BaseExpr, bool &IsArrow,
[all …]
DSemaPseudoObject.cpp1111 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter() local
1112 QualType BaseT = BaseExpr->getType(); in findAtIndexGetter()
1133 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter()
1134 << BaseExpr->getType() << arrayRef; in findAtIndexGetter()
1184 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter()
1185 << BaseExpr->getType() << 0 << arrayRef; in findAtIndexGetter()
1220 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter() local
1221 QualType BaseT = BaseExpr->getType(); in findAtIndexSetter()
1243 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexSetter()
1244 << BaseExpr->getType() << arrayRef; in findAtIndexSetter()
[all …]
DSemaExprObjC.cpp602 ExprResult Sema::BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr, in BuildObjCSubscriptExpression() argument
610 assert((!BaseExpr->isTypeDependent() && !IndexExpr->isTypeDependent()) && in BuildObjCSubscriptExpression()
621 Result = DefaultLvalueConversion(BaseExpr); in BuildObjCSubscriptExpression()
624 BaseExpr = Result.get(); in BuildObjCSubscriptExpression()
627 return ObjCSubscriptRefExpr::Create(Context, BaseExpr, IndexExpr, in BuildObjCSubscriptExpression()
1559 Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument
1576 : BaseExpr->getSourceRange(); in HandleExprPropertyRefExpr()
1594 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
1610 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
1662 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
[all …]
DSemaChecking.cpp7029 static const Type* getElementType(const Expr *BaseExpr) { in getElementType() argument
7030 const Type* EltType = BaseExpr->getType().getTypePtr(); in getElementType()
7085 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
7092 const Type *EffectiveType = getElementType(BaseExpr); in CheckArrayAccess()
7093 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
7095 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
7106 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
7108 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
7116 const Type* BaseType = getElementType(BaseExpr); in CheckArrayAccess()
7169 DiagRuntimeBehavior(BaseExpr->getLocStart(), BaseExpr, in CheckArrayAccess()
[all …]
DSemaExpr.cpp3835 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local
3838 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
3842 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
3847 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
3853 return BuildObjCSubscriptExpression(RLoc, BaseExpr, IndexExpr, nullptr, in CreateBuiltinArraySubscriptExpr()
3859 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
3865 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
3870 << ResultType << BaseExpr->getSourceRange(); in CreateBuiltinArraySubscriptExpr()
3874 BaseExpr = LHSExp; // vectors: V[123] in CreateBuiltinArraySubscriptExpr()
3894 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
[all …]
/external/clang/lib/CodeGen/
DCGExpr.cpp2480 Expr *BaseExpr = E->getBase(); in EmitMemberExpr() local
2485 llvm::Value *Ptr = EmitScalarExpr(BaseExpr); in EmitMemberExpr()
2486 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in EmitMemberExpr()
2490 BaseLV = EmitCheckedLValue(BaseExpr, TCK_MemberAccess); in EmitMemberExpr()
2984 Expr *BaseExpr = PseudoDtor->getBase(); in EmitCallExpr() local
2990 BaseValue = EmitScalarExpr(BaseExpr); in EmitCallExpr()
2991 const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>(); in EmitCallExpr()
2994 LValue BaseLV = EmitLValue(BaseExpr); in EmitCallExpr()
2996 QualType BaseTy = BaseExpr->getType(); in EmitCallExpr()
3172 const Expr *BaseExpr = E->getBase(); in EmitObjCIvarRefLValue() local
[all …]
DCGExprCXX.cpp238 const Expr *BaseExpr = BO->getLHS(); in EmitCXXMemberPointerCallExpr() local
256 This = EmitScalarExpr(BaseExpr); in EmitCXXMemberPointerCallExpr()
258 This = EmitLValue(BaseExpr).getAddress(); in EmitCXXMemberPointerCallExpr()
DCGExprScalar.cpp3329 Expr *BaseExpr = E->getBase(); in EmitObjCIsaExpr() local
3330 if (BaseExpr->isRValue()) { in EmitObjCIsaExpr()
3332 llvm::Value *Src = EmitScalarExpr(BaseExpr); in EmitObjCIsaExpr()
3338 V = ScalarExprEmitter(*this).EmitLoadOfLValue(BaseExpr); in EmitObjCIsaExpr()
3340 V = EmitLValue(BaseExpr).getAddress(); in EmitObjCIsaExpr()
/external/clang/include/clang/AST/
DExprCXX.h615 Expr *BaseExpr; variable
630 BaseExpr(baseExpr), TheDecl(decl), in MSPropertyRefExpr()
644 return BaseExpr->getLocStart(); in getLocStart()
653 return child_range((Stmt**)&BaseExpr, (Stmt**)&BaseExpr + 1); in children()
659 Expr *getBaseExpr() const { return BaseExpr; } in getBaseExpr()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp1835 Expr *BaseExpr = M->getBase(); in VisitMemberExpr() local
1840 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr()
1850 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr()
1851 SVal baseExprVal = state->getSVal(BaseExpr, LCtx); in VisitMemberExpr()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp5860 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local
5865 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr()
5866 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr()
5873 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
5875 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
5915 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
5917 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
DRewriteModernObjC.cpp7629 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local
7634 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr()
7635 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr()
7642 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
7644 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
7665 BaseExpr); in RewriteObjCIvarRefExpr()
/external/clang/include/clang/Sema/
DSema.h3543 bool CheckQualifiedMemberReference(Expr *BaseExpr, QualType BaseType,
4730 ExprResult BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr,
6925 Expr *BaseExpr,
8186 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,
/external/clang/lib/Serialization/
DASTReaderStmt.cpp1593 E->BaseExpr = Reader.ReadSubExpr(); in VisitMSPropertyRefExpr()