Lines Matching refs:BaseExpr
15892 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
15904 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
15905 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
15907 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
15927 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
15929 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
15976 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
15987 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
15988 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
15989 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
15991 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
15996 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()
16071 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
16083 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
16090 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
16091 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
16092 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
16094 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
16099 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()