Lines Matching refs:DeclType
78 static Expr *IsStringInit(Expr *init, QualType declType, ASTContext &Context) {
79 const ArrayType *arrayType = Context.getAsArrayType(declType);
189 InitListExpr *IList, QualType &DeclType,
201 InitListExpr *IList, QualType DeclType,
206 InitListExpr *IList, QualType DeclType,
211 InitListExpr *IList, QualType DeclType,
216 InitListExpr *IList, QualType DeclType, unsigned &Index,
220 InitListExpr *IList, QualType DeclType,
227 InitListExpr *IList, QualType &DeclType,
251 int numArrayElements(QualType DeclType);
252 int numStructUnionElements(QualType DeclType);
495 int InitListChecker::numArrayElements(QualType DeclType) {
499 SemaRef.Context.getAsConstantArrayType(DeclType)) {
505 int InitListChecker::numStructUnionElements(QualType DeclType) {
506 RecordDecl *structDecl = DeclType->getAs<RecordType>()->getDecl();
673 QualType &DeclType,
679 if (DeclType->isAnyComplexType() && SubobjectIsDesignatorContext) {
682 CheckComplexType(Entity, IList, DeclType, Index,
684 } else if (DeclType->isScalarType()) {
685 CheckScalarType(Entity, IList, DeclType, Index,
687 } else if (DeclType->isVectorType()) {
688 CheckVectorType(Entity, IList, DeclType, Index,
690 } else if (DeclType->isAggregateType()) {
691 if (DeclType->isRecordType()) {
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,
706 } else if (DeclType->isVoidType() || DeclType->isFunctionType()) {
711 << DeclType;
713 } else if (DeclType->isRecordType()) {
724 << DeclType << IList->getSourceRange();
726 } else if (DeclType->isReferenceType()) {
727 CheckReferenceType(Entity, IList, DeclType, Index,
729 } else if (DeclType->isObjCObjectType()) {
732 << DeclType;
737 << DeclType;
868 InitListExpr *IList, QualType DeclType,
882 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList,
892 QualType elementType = DeclType->getAs<ComplexType>()->getElementType();
905 InitListExpr *IList, QualType DeclType,
929 CheckScalarType(Entity, SubIList, DeclType, Index, StructuredList,
936 << DeclType << expr->getSourceRange();
975 InitListExpr *IList, QualType DeclType,
987 << DeclType
999 << DeclType << IList->getSourceRange();
1032 InitListExpr *IList, QualType DeclType,
1036 const VectorType *VT = DeclType->getAs<VectorType>();
1147 InitListExpr *IList, QualType &DeclType,
1153 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType);
1165 CheckStringInit(Str, DeclType, arrayType, SemaRef);
1211 DeclType, 0, &elementIndex, Index,
1250 if (!hadError && DeclType->isIncompleteArrayType() && !VerifyOnly) {
1261 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements,
1315 QualType DeclType,
1322 RecordDecl* structDecl = DeclType->getAs<RecordType>()->getDecl();
1331 if (DeclType->isUnionType() && IList->getNumInits() == 0) {
1333 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1352 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1369 DeclType, &Field, 0, Index,
1388 if (InitializedSomething && DeclType->isUnionType())
1421 if (DeclType->isUnionType() && !VerifyOnly) {
1432 !DeclType->isUnionType()) {
1446 if (VerifyOnly && Field != FieldEnd && !DeclType->isUnionType() &&
1561 /// IList, is well-formed for a current object of type @p DeclType
1573 /// @param DeclType The type of the "current object" (C99 6.7.8p17),
4769 QualType DeclType = Entity.getType();
4771 = S.Context.getAsIncompleteArrayType(DeclType)) {