Lines Matching refs:allocType
982 QualType allocType) {
984 allocType->getBaseElementTypeUnsafe()->getAs<RecordType>();
1111 QualType AllocType = TInfo->getType();
1124 AllocType,
1157 QualType AllocType,
1196 if (TypeMayContainAuto && AllocType->isUndeducedType()) {
1199 << AllocType << TypeRange);
1204 << AllocType << TypeRange);
1209 << AllocType << TypeRange);
1215 << AllocType << Deduce->getType()
1219 AllocType = DeducedType;
1226 = Context.getAsConstantArrayType(AllocType)) {
1230 AllocType = Array->getElementType();
1234 if (CheckAllocatedType(AllocType, TypeRange.getBegin(), TypeRange))
1238 isStdInitializerList(AllocType, nullptr)) {
1246 AllocType
1247 AllocType->isObjCLifetimeType()) {
1248 AllocType = Context.getLifetimeQualifiedType(AllocType,
1249 AllocType->getObjCARCImplicitLifetime());
1252 QualType ResultType = Context.getPointerType(AllocType);
1371 } else if (!AllocType->isDependentType()) {
1373 ConstantArrayType::getNumAddressingBits(Context, AllocType, Value);
1405 if (!AllocType->isDependentType() &&
1409 UseGlobal, AllocType, ArraySize, PlacementArgs,
1416 if (ArraySize && !AllocType->isDependentType())
1418 = doesUsualArrayDeleteWantSize(*this, StartLoc, AllocType);
1448 if (unsigned Align = Context.getPreferredTypeAlign(AllocType.getTypePtr())){
1452 << AllocType
1458 QualType InitType = AllocType;
1474 InitType = Context.getConstantArrayType(AllocType,
1482 if (!AllocType->isDependentType() &&
1535 QualType BaseAllocType = Context.getBaseElementType(AllocType);
1559 bool Sema::CheckAllocatedType(QualType AllocType, SourceLocation Loc,
1563 if (AllocType->isFunctionType())
1565 << AllocType << 0 << R;
1566 else if (AllocType->isReferenceType())
1568 << AllocType << 1 << R;
1569 else if (!AllocType->isDependentType() &&
1570 RequireCompleteType(Loc, AllocType, diag::err_new_incomplete_type,R))
1572 else if (RequireNonAbstractType(Loc, AllocType,
1575 else if (AllocType->isVariablyModifiedType())
1577 << AllocType;
1578 else if (unsigned AddressSpace = AllocType.getAddressSpace())
1580 << AllocType.getUnqualifiedType() << AddressSpace;
1582 if (const ArrayType *AT = Context.getAsArrayType(AllocType)) {
1618 bool UseGlobal, QualType AllocType,
1653 QualType AllocElemType = Context.getBaseElementType(AllocType);