Lines Matching refs:ArraySize
1392 static bool isArraySizeVLA(Sema &S, Expr *ArraySize, llvm::APSInt &SizeVal) {
1407 return S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser,
1418 /// \param ArraySize Expression describing the size of the array.
1428 Expr *ArraySize, unsigned Quals,
1484 if (ArraySize && ArraySize->hasPlaceholderType()) {
1485 ExprResult Result = CheckPlaceholderExpr(ArraySize);
1487 ArraySize = Result.take();
1491 if (ArraySize && !ArraySize->isRValue()) {
1492 ExprResult Result = DefaultLvalueConversion(ArraySize);
1496 ArraySize = Result.take();
1502 ArraySize && !ArraySize->isTypeDependent() &&
1503 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
1504 Diag(ArraySize->getLocStart(), diag::err_array_size_non_int)
1505 << ArraySize->getType() << ArraySize->getSourceRange();
1510 if (!ArraySize) {
1515 } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) {
1516 T = Context.getDependentSizedArrayType(T, ArraySize, ASM, Quals, Brackets);
1519 isArraySizeVLA(*this, ArraySize, ConstVal)) {
1523 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
1524 Diag(ArraySize->getLocStart(), diag::err_array_size_non_int)
1525 << ArraySize->getType() << ArraySize->getSourceRange();
1532 T = Context.getVariableArrayType(T, ArraySize, ASM, Quals, Brackets);
1538 Diag(ArraySize->getLocStart(), diag::err_decl_negative_array_size)
1539 << getPrintableNameForEntity(Entity) << ArraySize->getSourceRange();
1541 Diag(ArraySize->getLocStart(), diag::err_typecheck_negative_array_size)
1542 << ArraySize->getSourceRange();
1548 Diag(ArraySize->getLocStart(),
1551 << ArraySize->getSourceRange();
1554 Diag(ArraySize->getLocStart(),
1556 << ArraySize->getSourceRange();
1565 Diag(ArraySize->getLocStart(), diag::err_array_too_large)
1567 << ArraySize->getSourceRange();
1620 QualType Sema::BuildExtVectorType(QualType T, Expr *ArraySize,
1630 if (!ArraySize->isTypeDependent() && !ArraySize->isValueDependent()) {
1632 if (!ArraySize->isIntegerConstantExpr(vecSize, Context)) {
1635 << ArraySize->getSourceRange();
1645 << ArraySize->getSourceRange();
1651 << ArraySize->getSourceRange();
1658 return Context.getDependentSizedExtVectorType(T, ArraySize, AttrLoc);
2556 Expr *ArraySize = static_cast<Expr*>(ATI.NumElts);
2626 T = S.BuildArrayType(T, ASM, ArraySize, ATI.TypeQuals,