Home | History | Annotate | Download | only in Sema

Lines Matching refs:ArraySize

1058   Expr *ArraySize = nullptr;
1073 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts);
1078 if (ArraySize) {
1126 ArraySize,
1159 Expr *ArraySize,
1224 if (!ArraySize) {
1227 ArraySize = IntegerLiteral::Create(Context, Array->getSize(),
1254 if (ArraySize && ArraySize->getType()->isNonOverloadPlaceholderType()) {
1255 ExprResult result = CheckPlaceholderExpr(ArraySize);
1257 ArraySize = result.get();
1266 if (ArraySize && !ArraySize->isTypeDependent()) {
1271 ConvertedSize = PerformImplicitConversion(ArraySize, Context.getSizeType(),
1275 ArraySize->getType()->getAs<RecordType>())
1278 << ArraySize->getType() << 0 << "'size_t'";
1282 Expr *ArraySize;
1285 SizeConvertDiagnoser(Expr *ArraySize)
1287 ArraySize(ArraySize) {}
1298 << T << ArraySize->getSourceRange();
1331 } SizeDiagnoser(ArraySize);
1333 ConvertedSize = PerformContextualImplicitConversion(StartLoc, ArraySize,
1339 ArraySize = ConvertedSize.get();
1340 QualType SizeType = ArraySize->getType();
1355 if (!ArraySize->isValueDependent()) {
1359 if (ArraySize->isIntegerConstantExpr(Value, Context)) {
1364 Diag(ArraySize->getLocStart(),
1366 << ArraySize->getSourceRange();
1368 return ExprError(Diag(ArraySize->getLocStart(),
1370 << ArraySize->getSourceRange());
1376 Diag(ArraySize->getLocStart(),
1379 << ArraySize->getSourceRange();
1381 return ExprError(Diag(ArraySize->getLocStart(),
1384 << ArraySize->getSourceRange());
1389 Diag(ArraySize->getLocStart(), diag::ext_new_paren_array_nonconst)
1390 << ArraySize->getSourceRange()
1409 UseGlobal, AllocType, ArraySize, PlacementArgs,
1416 if (ArraySize && !AllocType->isDependentType())
1462 if (ResultType->isArrayType() || ArraySize) {
1536 if (ArraySize && !BaseAllocType->isDependentType()) {
1553 ArraySize, initStyle, Initializer, ResultType, AllocTypeInfo,