Lines Matching refs:ArraySize
1205 static bool isArraySizeVLA(Sema &S, Expr *ArraySize, llvm::APSInt &SizeVal) {
1209 ArraySize, &SizeVal, S.PDiag(), S.LangOpts.GNUMode,
1220 /// \param ArraySize Expression describing the size of the array.
1232 Expr *ArraySize, unsigned Quals,
1289 if (ArraySize && ArraySize->hasPlaceholderType()) {
1290 ExprResult Result = CheckPlaceholderExpr(ArraySize);
1292 ArraySize = Result.take();
1296 if (ArraySize && !ArraySize->isRValue()) {
1297 ExprResult Result = DefaultLvalueConversion(ArraySize);
1301 ArraySize = Result.take();
1307 ArraySize && !ArraySize->isTypeDependent() &&
1308 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
1309 Diag(ArraySize->getLocStart(), diag::err_array_size_non_int)
1310 << ArraySize->getType() << ArraySize->getSourceRange();
1315 if (!ArraySize) {
1320 } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) {
1321 ArraySize, ASM, Quals, Brackets);
1324 isArraySizeVLA(*this, ArraySize, ConstVal)) {
1328 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
1329 Diag(ArraySize->getLocStart(), diag::err_array_size_non_int)
1330 << ArraySize->getType() << ArraySize->getSourceRange();
1337 T = Context.getVariableArrayType(T, ArraySize, ASM, Quals, Brackets);
1343 Diag(ArraySize->getLocStart(), diag::err_decl_negative_array_size)
1344 << getPrintableNameForEntity(Entity) << ArraySize->getSourceRange();
1346 Diag(ArraySize->getLocStart(), diag::err_typecheck_negative_array_size)
1347 << ArraySize->getSourceRange();
1353 Diag(ArraySize->getLocStart(),
1356 << ArraySize->getSourceRange();
1359 Diag(ArraySize->getLocStart(),
1361 << ArraySize->getSourceRange();
1370 Diag(ArraySize->getLocStart(), diag::err_array_too_large)
1372 << ArraySize->getSourceRange();
1409 QualType Sema::BuildExtVectorType(QualType T, Expr *ArraySize,
1419 if (!ArraySize->isTypeDependent() && !ArraySize->isValueDependent()) {
1421 if (!ArraySize->isIntegerConstantExpr(vecSize, Context)) {
1423 << "ext_vector_type" << ArraySize->getSourceRange();
1433 << ArraySize->getSourceRange();
1440 return Context.getDependentSizedExtVectorType(T, ArraySize, AttrLoc);
2135 Expr *ArraySize = static_cast<Expr*>(ATI.NumElts);
2151 T = S.BuildArrayType(T, ASM, ArraySize, ATI.TypeQuals,