Lines Matching defs:OASE

5175     } else if (auto *OASE = dyn_cast_or_null<ArraySectionExpr>(RefExpr)) {
5176 Expr *Base = OASE->getBase()->IgnoreParenImpCasts();
5808 const auto *OASE = cast<ArraySectionExpr>(E->IgnoreParenImpCasts());
5810 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
18131 ASTContext &Context, const ArraySectionExpr *OASE, bool &SingleElement,
18133 const Expr *Length = OASE->getLength();
18137 if (OASE->getColonLocFirst().isValid())
18154 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts();
18163 if (OASE->getColonLocFirst().isValid())
18363 auto *OASE = dyn_cast<ArraySectionExpr>(RefExpr->IgnoreParens());
18366 } else if (OASE) {
18368 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
18389 /*AcceptIfMutable*/ false, ASE || OASE))
18396 if (!ASE && !OASE) {
18507 if (!ASE && !OASE) {
18520 if (!ASE && !OASE) {
18541 if (OASE) {
18545 Context, OASE, SingleElement, ArraySizes);
18556 if ((OASE && !ConstantLengthOASE) ||
18557 (!OASE && !ASE &&
18561 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
18565 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
18579 } else if (!ASE && !OASE &&
18884 if (ASE || OASE) {
18923 ASE || OASE);
19902 const auto *OASE = dyn_cast<ArraySectionExpr>(SimpleExpr);
19903 if (OASE) {
19905 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
19915 const Expr *Length = OASE->getLength();
20065 const auto *OASE = dyn_cast<ArraySectionExpr>(E);
20071 (OASE && OASE->getColonLocFirst().isInvalid())) {
20078 assert(OASE && "Expecting array section if not an array subscript.");
20079 const Expr *LowerBound = OASE->getLowerBound();
20080 const Expr *Length = OASE->getLength();
20123 const auto *OASE = dyn_cast<ArraySectionExpr>(E);
20128 (OASE && OASE->getColonLocFirst().isInvalid()))
20131 assert(OASE && "Expecting array section if not an array subscript.");
20132 const Expr *Length = OASE->getLength();
20338 bool VisitArraySectionExpr(ArraySectionExpr *OASE) {
20343 Expr *E = OASE->getBase()->IgnoreParenImpCasts();
20357 << 0 << OASE->getSourceRange();
20362 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType);
20364 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType);
20389 << OASE->getSourceRange();
20399 if (!OASE->getLength()->isValueDependent() &&
20400 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) &&
20402 SemaRef.Diag(OASE->getLength()->getExprLoc(),
20404 SemaRef.Diag(OASE->getLength()->getExprLoc(),
20407 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() &&
20408 OASE->getLowerBound()->EvaluateAsInt(ResultL,
20411 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(),
20413 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(),
20421 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false);
20517 const auto *OASE =
20519 if (!OASE)
20521 if (OASE && OASE->getLength())
20619 } else if (const auto *OASE = dyn_cast<ArraySectionExpr>(
20621 const Expr *E = OASE->getBase()->IgnoreParenImpCasts();
20623 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>(
20625 Type = OASE->getBase()->getType()->getPointeeType();
21099 auto *OASE = dyn_cast<ArraySectionExpr>(VE->IgnoreParens());
21103 } else if (OASE) {
21105 ArraySectionExpr::getBaseOriginalType(OASE->getBase());