Lines Matching defs:OASE
5157 } else if (auto *OASE = dyn_cast_or_null<ArraySectionExpr>(RefExpr)) {
5158 Expr *Base = OASE->getBase()->IgnoreParenImpCasts();
5792 const auto *OASE = cast<ArraySectionExpr>(E->IgnoreParenImpCasts());
5794 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
18319 ASTContext &Context, const ArraySectionExpr *OASE, bool &SingleElement,
18321 const Expr *Length = OASE->getLength();
18325 if (OASE->getColonLocFirst().isValid())
18342 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts();
18351 if (OASE->getColonLocFirst().isValid())
18553 auto *OASE = dyn_cast<ArraySectionExpr>(RefExpr->IgnoreParens());
18556 } else if (OASE) {
18558 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
18579 /*AcceptIfMutable=*/false, ASE || OASE))
18586 if (!ASE && !OASE) {
18697 if (!ASE && !OASE) {
18710 if (!ASE && !OASE) {
18731 if (OASE) {
18735 Context, OASE, SingleElement, ArraySizes);
18746 if ((OASE && !ConstantLengthOASE) ||
18747 (!OASE && !ASE &&
18751 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
18755 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
18769 } else if (!ASE && !OASE &&
19074 if (ASE || OASE) {
19113 ASE || OASE);
20092 const auto *OASE = dyn_cast<ArraySectionExpr>(SimpleExpr);
20093 if (OASE) {
20095 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
20105 const Expr *Length = OASE->getLength();
20255 const auto *OASE = dyn_cast<ArraySectionExpr>(E);
20261 (OASE && OASE->getColonLocFirst().isInvalid())) {
20268 assert(OASE && "Expecting array section if not an array subscript.");
20269 const Expr *LowerBound = OASE->getLowerBound();
20270 const Expr *Length = OASE->getLength();
20313 const auto *OASE = dyn_cast<ArraySectionExpr>(E);
20318 (OASE && OASE->getColonLocFirst().isInvalid()))
20321 assert(OASE && "Expecting array section if not an array subscript.");
20322 const Expr *Length = OASE->getLength();
20528 bool VisitArraySectionExpr(ArraySectionExpr *OASE) {
20533 Expr *E = OASE->getBase()->IgnoreParenImpCasts();
20547 << 0 << OASE->getSourceRange();
20552 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType);
20554 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType);
20579 << OASE->getSourceRange();
20589 if (!OASE->getLength()->isValueDependent() &&
20590 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) &&
20592 SemaRef.Diag(OASE->getLength()->getExprLoc(),
20594 SemaRef.Diag(OASE->getLength()->getExprLoc(),
20597 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() &&
20598 OASE->getLowerBound()->EvaluateAsInt(ResultL,
20601 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(),
20603 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(),
20611 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false);
20707 const auto *OASE =
20709 if (!OASE)
20711 if (OASE && OASE->getLength())
20809 } else if (const auto *OASE = dyn_cast<ArraySectionExpr>(
20811 const Expr *E = OASE->getBase()->IgnoreParenImpCasts();
20813 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>(
20815 Type = OASE->getBase()->getType()->getPointeeType();
21487 auto *OASE = dyn_cast<ArraySectionExpr>(VE->IgnoreParens());
21491 } else if (OASE) {
21493 ArraySectionExpr::getBaseOriginalType(OASE->getBase());
21608 const auto *OASE = cast<ArraySectionExpr>(VE->IgnoreParenImpCasts());
21609 QualType BType = ArraySectionExpr::getBaseOriginalType(OASE->getBase());