Lines Matching refs:BaseExpr
13072 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
13084 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
13085 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
13087 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
13095 BaseType == nullptr || BaseExpr->isFlexibleArrayMemberLike( in CheckArrayAccess()
13155 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
13166 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
13167 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
13168 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
13170 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
13174 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()
13246 BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
13256 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess()
13263 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
13264 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess()
13265 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
13267 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
13271 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess()