Lines Matching refs:BaseExpr
17976 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
17988 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
17989 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
17991 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
17999 BaseType == nullptr || BaseExpr->isFlexibleArrayMemberLike( in CheckArrayAccess()
18059 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
18070 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
18071 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
18072 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
18074 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
18078 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()
18150 BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
18160 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
18167 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
18168 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
18169 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
18171 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
18175 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()