Lines Matching refs:DeclType

188                              InitListExpr *IList, QualType &DeclType,
200 InitListExpr *IList, QualType DeclType,
205 InitListExpr *IList, QualType DeclType,
210 InitListExpr *IList, QualType DeclType,
215 InitListExpr *IList, QualType DeclType, unsigned &Index,
219 InitListExpr *IList, QualType DeclType,
226 InitListExpr *IList, QualType &DeclType,
250 int numArrayElements(QualType DeclType);
251 int numStructUnionElements(QualType DeclType);
494 int InitListChecker::numArrayElements(QualType DeclType) {
498 SemaRef.Context.getAsConstantArrayType(DeclType)) {
504 int InitListChecker::numStructUnionElements(QualType DeclType) {
505 RecordDecl *structDecl = DeclType->getAs<RecordType>()->getDecl();
672 QualType &DeclType,
678 if (DeclType->isAnyComplexType() && SubobjectIsDesignatorContext) {
681 CheckComplexType(Entity, IList, DeclType, Index,
683 } else if (DeclType->isScalarType()) {
684 CheckScalarType(Entity, IList, DeclType, Index,
686 } else if (DeclType->isVectorType()) {
687 CheckVectorType(Entity, IList, DeclType, Index,
689 } else if (DeclType->isRecordType()) {
690 assert(DeclType->isAggregateType() &&
692 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
693 CheckStructUnionTypes(Entity, IList, DeclType, RD->field_begin(),
697 } else if (DeclType->isArrayType()) {
701 CheckArrayType(Entity, IList, DeclType, Zero,
704 } else if (DeclType->isVoidType() || DeclType->isFunctionType()) {
709 << DeclType;
711 } else if (DeclType->isReferenceType()) {
712 CheckReferenceType(Entity, IList, DeclType, Index,
714 } else if (DeclType->isObjCObjectType()) {
717 << DeclType;
722 << DeclType;
860 InitListExpr *IList, QualType DeclType,
874 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList,
884 QualType elementType = DeclType->getAs<ComplexType>()->getElementType();
897 InitListExpr *IList, QualType DeclType,
921 CheckScalarType(Entity, SubIList, DeclType, Index, StructuredList,
928 << DeclType << expr->getSourceRange();
967 InitListExpr *IList, QualType DeclType,
979 << DeclType
991 << DeclType << IList->getSourceRange();
1024 InitListExpr *IList, QualType DeclType,
1028 const VectorType *VT = DeclType->getAs<VectorType>();
1139 InitListExpr *IList, QualType &DeclType,
1145 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType);
1157 CheckStringInit(Str, DeclType, arrayType, SemaRef);
1203 DeclType, 0, &elementIndex, Index,
1242 if (!hadError && DeclType->isIncompleteArrayType() && !VerifyOnly) {
1253 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements,
1307 QualType DeclType,
1314 RecordDecl* structDecl = DeclType->getAs<RecordType>()->getDecl();
1323 if (DeclType->isUnionType() && IList->getNumInits() == 0) {
1325 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1344 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1361 DeclType, &Field, 0, Index,
1380 if (InitializedSomething && DeclType->isUnionType())
1413 if (DeclType->isUnionType() && !VerifyOnly) {
1424 !DeclType->isUnionType()) {
1438 if (VerifyOnly && Field != FieldEnd && !DeclType->isUnionType() &&
1556 /// IList, is well-formed for a current object of type @p DeclType
4788 QualType DeclType = Entity.getType();
4790 = S.Context.getAsIncompleteArrayType(DeclType)) {