Lines Matching defs:IndexExpr
175 const Expr *PointerExpr = nullptr, *IndexExpr = nullptr;
178 IndexExpr = BO->getRHS();
181 IndexExpr = ASE->getRHS();
185 if (IndexExpr->getType()->isPointerType())
186 std::swap(PointerExpr, IndexExpr);
189 IndexExpr->getType()->isPointerType())
192 IndexExpr = IndexExpr->IgnoreParens();
194 QualType IndexExprType = IndexExpr->getType();
215 const Expr *LHS = getLHSOfMulBinOp(IndexExpr);
226 auto Diag = diag(IndexExpr->getBeginLoc(),
229 << IndexExpr->getSourceRange();
231 IndexExpr->getEndLoc(), 0, *Result->SourceManager, getLangOpts());
234 IndexExpr->getBeginLoc(),
238 Diag << FixItHint::CreateInsertion(IndexExpr->getBeginLoc(),
241 Diag << includeStddefHeader(IndexExpr->getBeginLoc());
246 diag(IndexExpr->getBeginLoc(), "perform multiplication in a wider type",
255 Lexer::getLocForEndOfToken(IndexExpr->getEndLoc(), 0,