Home | History | Annotate | Download | only in Sema

Lines Matching refs:DeclType

123 static StringInitFailureKind IsStringInit(Expr *init, QualType declType,
125 const ArrayType *arrayType = Context.getAsArrayType(declType);
251 InitListExpr *IList, QualType &DeclType,
263 InitListExpr *IList, QualType DeclType,
268 InitListExpr *IList, QualType DeclType,
273 InitListExpr *IList, QualType DeclType,
278 InitListExpr *IList, QualType DeclType, unsigned &Index,
282 InitListExpr *IList, QualType DeclType,
289 InitListExpr *IList, QualType &DeclType,
313 int numArrayElements(QualType DeclType);
314 int numStructUnionElements(QualType DeclType);
655 int InitListChecker::numArrayElements(QualType DeclType) {
659 SemaRef.Context.getAsConstantArrayType(DeclType)) {
665 int InitListChecker::numStructUnionElements(QualType DeclType) {
666 RecordDecl *structDecl = DeclType->getAs<RecordType>()->getDecl();
835 QualType &DeclType,
841 if (DeclType->isAnyComplexType() && SubobjectIsDesignatorContext) {
844 CheckComplexType(Entity, IList, DeclType, Index,
846 } else if (DeclType->isScalarType()) {
847 CheckScalarType(Entity, IList, DeclType, Index,
849 } else if (DeclType->isVectorType()) {
850 CheckVectorType(Entity, IList, DeclType, Index,
852 } else if (DeclType->isRecordType()) {
853 assert(DeclType->isAggregateType() &&
855 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
856 CheckStructUnionTypes(Entity, IList, DeclType, RD->field_begin(),
860 } else if (DeclType->isArrayType()) {
864 CheckArrayType(Entity, IList, DeclType, Zero,
867 } else if (DeclType->isVoidType() || DeclType->isFunctionType()) {
872 << DeclType;
874 } else if (DeclType->isReferenceType()) {
875 CheckReferenceType(Entity, IList, DeclType, Index,
877 } else if (DeclType->isObjCObjectType()) {
880 << DeclType;
885 << DeclType;
1025 InitListExpr *IList, QualType DeclType,
1039 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList,
1049 QualType elementType = DeclType->getAs<ComplexType>()->getElementType();
1062 InitListExpr *IList, QualType DeclType,
1088 CheckScalarType(Entity, SubIList, DeclType, Index, StructuredList,
1095 << DeclType << expr->getSourceRange();
1133 InitListExpr *IList, QualType DeclType,
1145 << DeclType
1157 << DeclType << IList->getSourceRange();
1189 InitListExpr *IList, QualType DeclType,
1193 const VectorType *VT = DeclType->getAs<VectorType>();
1344 InitListExpr *IList, QualType &DeclType,
1350 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType);
1362 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef);
1409 DeclType, nullptr, &elementIndex, Index,
1448 if (!hadError && DeclType->isIncompleteArrayType() && !VerifyOnly) {
1459 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements,
1514 QualType DeclType,
1521 RecordDecl* structDecl = DeclType->getAs<RecordType>()->getDecl();
1532 if (DeclType->isUnionType() && IList->getNumInits() == 0) {
1533 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1569 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1586 DeclType, &Field, nullptr, Index,
1605 if (InitializedSomething && DeclType->isUnionType())
1638 if (DeclType->isUnionType() && !VerifyOnly) {
1649 !DeclType->isUnionType()) {
1663 if (VerifyOnly && Field != FieldEnd && !DeclType->isUnionType() &&
1782 /// IList, is well-formed for a current object of type @p DeclType
5662 QualType DeclType = Entity.getType();
5664 = S.Context.getAsIncompleteArrayType(DeclType)) {