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,
314 int numArrayElements(QualType DeclType);
315 int numStructUnionElements(QualType DeclType);
734 int InitListChecker::numArrayElements(QualType DeclType) {
738 SemaRef.Context.getAsConstantArrayType(DeclType)) {
744 int InitListChecker::numStructUnionElements(QualType DeclType) {
745 RecordDecl *structDecl = DeclType->getAs<RecordType>()->getDecl();
974 QualType &DeclType,
980 if (DeclType->isAnyComplexType() && SubobjectIsDesignatorContext) {
983 CheckComplexType(Entity, IList, DeclType, Index,
985 } else if (DeclType->isScalarType()) {
986 CheckScalarType(Entity, IList, DeclType, Index,
988 } else if (DeclType->isVectorType()) {
989 CheckVectorType(Entity, IList, DeclType, Index,
991 } else if (DeclType->isRecordType()) {
992 assert(DeclType->isAggregateType() &&
994 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
995 CheckStructUnionTypes(Entity, IList, DeclType, RD->field_begin(),
999 } else if (DeclType->isArrayType()) {
1003 CheckArrayType(Entity, IList, DeclType, Zero,
1006 } else if (DeclType->isVoidType() || DeclType->isFunctionType()) {
1011 << DeclType;
1013 } else if (DeclType->isReferenceType()) {
1014 CheckReferenceType(Entity, IList, DeclType, Index,
1016 } else if (DeclType->isObjCObjectType()) {
1019 << DeclType;
1024 << DeclType;
1188 InitListExpr *IList, QualType DeclType,
1202 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList,
1212 QualType elementType = DeclType->getAs<ComplexType>()->getElementType();
1225 InitListExpr *IList, QualType DeclType,
1251 CheckScalarType(Entity, SubIList, DeclType, Index, StructuredList,
1258 << DeclType << expr->getSourceRange();
1296 InitListExpr *IList, QualType DeclType,
1308 << DeclType
1320 << DeclType << IList->getSourceRange();
1352 InitListExpr *IList, QualType DeclType,
1356 const VectorType *VT = DeclType->getAs<VectorType>();
1507 InitListExpr *IList, QualType &DeclType,
1513 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType);
1525 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef);
1572 DeclType, nullptr, &elementIndex, Index,
1611 if (!hadError && DeclType->isIncompleteArrayType() && !VerifyOnly) {
1622 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements,
1677 QualType DeclType,
1684 RecordDecl* structDecl = DeclType->getAs<RecordType>()->getDecl();
1695 if (DeclType->isUnionType() && IList->getNumInits() == 0) {
1696 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1733 RecordDecl *RD = DeclType->getAs<RecordType>()->getDecl();
1750 DeclType, &Field, nullptr, Index,
1769 if (InitializedSomething && DeclType->isUnionType())
1802 if (DeclType->isUnionType() && !VerifyOnly) {
1813 !DeclType->isUnionType()) {
1827 if (VerifyOnly && Field != FieldEnd && !DeclType->isUnionType() &&
1928 /// IList, is well-formed for a current object of type @p DeclType
6077 QualType DeclType = Entity.getType();
6079 = S.Context.getAsIncompleteArrayType(DeclType)) {