Lines Matching refs:IndexExpr

5006   auto IsIndexValid = [&](Expr *IndexExpr, unsigned Dim,  in CreateBuiltinMatrixSubscriptExpr()
5008 if (!IndexExpr->getType()->isIntegerType() && in CreateBuiltinMatrixSubscriptExpr()
5009 !IndexExpr->isTypeDependent()) { in CreateBuiltinMatrixSubscriptExpr()
5010 Diag(IndexExpr->getBeginLoc(), diag::err_matrix_index_not_integer) in CreateBuiltinMatrixSubscriptExpr()
5016 IndexExpr->getIntegerConstantExpr(Context)) { in CreateBuiltinMatrixSubscriptExpr()
5018 Diag(IndexExpr->getBeginLoc(), diag::err_matrix_index_outside_range) in CreateBuiltinMatrixSubscriptExpr()
5025 tryConvertExprToType(IndexExpr, Context.getSizeType()); in CreateBuiltinMatrixSubscriptExpr()
5126 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local
5130 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5135 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5140 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5145 return ObjC().BuildObjCSubscriptExpression(RLoc, BaseExpr, IndexExpr, in CreateBuiltinArraySubscriptExpr()
5152 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5158 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5179 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5210 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5221 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5228 if (!IndexExpr->getType()->isIntegerType() && !IndexExpr->isTypeDependent()) in CreateBuiltinArraySubscriptExpr()
5230 << IndexExpr->getSourceRange()); in CreateBuiltinArraySubscriptExpr()
5232 if ((IndexExpr->getType()->isSpecificBuiltinType(BuiltinType::Char_S) || in CreateBuiltinArraySubscriptExpr()
5233 IndexExpr->getType()->isSpecificBuiltinType(BuiltinType::Char_U)) && in CreateBuiltinArraySubscriptExpr()
5234 !IndexExpr->isTypeDependent()) { in CreateBuiltinArraySubscriptExpr()
5236 IndexExpr->getIntegerConstantExpr(getASTContext()); in CreateBuiltinArraySubscriptExpr()
5239 Diag(LLoc, diag::warn_subscript_is_char) << IndexExpr->getSourceRange(); in CreateBuiltinArraySubscriptExpr()
10756 Expr* IndexExpr = RHSExpr; in diagnoseStringPlusInt() local
10759 IndexExpr = LHSExpr; in diagnoseStringPlusInt()
10763 IndexExpr->getType()->isIntegralOrUnscopedEnumerationType(); in diagnoseStringPlusInt()
10764 if (!IsStringPlusInt || IndexExpr->isValueDependent()) in diagnoseStringPlusInt()
10769 << DiagRange << IndexExpr->IgnoreImpCasts()->getType(); in diagnoseStringPlusInt()
10772 if (IndexExpr == RHSExpr) { in diagnoseStringPlusInt()