Lines Matching refs:BaseExpr
14790 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
14802 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
14803 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
14805 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
14825 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
14827 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
14872 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
14883 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
14884 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
14885 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
14887 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
14892 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()
14963 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
14975 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
14982 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
14983 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
14984 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
14986 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
14991 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()