Lines Matching refs:IList
247 InitListExpr *IList, QualType &T,
251 InitListExpr *IList, QualType &DeclType,
258 InitListExpr *IList, QualType ElemType,
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,
295 InitListExpr *IList, DesignatedInitExpr *DIE,
305 InitListExpr *getStructuredSubobjectInit(InitListExpr *IList, unsigned Index,
898 InitListExpr *IList, QualType &T, in CheckExplicitInitList() argument
902 SyntacticToSemantic[IList] = StructuredList; in CheckExplicitInitList()
903 StructuredList->setSyntacticForm(IList); in CheckExplicitInitList()
907 CheckListElementTypes(Entity, IList, T, /*SubobjectIsDesignatorContext=*/true, in CheckExplicitInitList()
913 IList->setType(ExprTy); in CheckExplicitInitList()
919 if (Index < IList->getNumInits()) { in CheckExplicitInitList()
924 IList->getType()->isVectorType())) { in CheckExplicitInitList()
939 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
940 << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
962 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
963 << initKind << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
968 IList->getNumInits() == 1 && !isa<InitListExpr>(IList->getInit(0))) in CheckExplicitInitList()
969 warnBracedScalarInit(SemaRef, Entity, IList->getSourceRange()); in CheckExplicitInitList()
973 InitListExpr *IList, in CheckListElementTypes() argument
983 CheckComplexType(Entity, IList, DeclType, Index, in CheckListElementTypes()
986 CheckScalarType(Entity, IList, DeclType, Index, in CheckListElementTypes()
989 CheckVectorType(Entity, IList, DeclType, Index, in CheckListElementTypes()
995 CheckStructUnionTypes(Entity, IList, DeclType, RD->field_begin(), in CheckListElementTypes()
1003 CheckArrayType(Entity, IList, DeclType, Zero, in CheckListElementTypes()
1010 SemaRef.Diag(IList->getLocStart(), diag::err_illegal_initializer_type) in CheckListElementTypes()
1014 CheckReferenceType(Entity, IList, DeclType, Index, in CheckListElementTypes()
1018 SemaRef.Diag(IList->getLocStart(), diag::err_init_objc_class) in CheckListElementTypes()
1023 SemaRef.Diag(IList->getLocStart(), diag::err_illegal_initializer_type) in CheckListElementTypes()
1030 InitListExpr *IList, in CheckSubElementType() argument
1035 Expr *expr = IList->getInit(Index); in CheckSubElementType()
1038 return CheckReferenceType(Entity, IList, ElemType, Index, in CheckSubElementType()
1048 = getStructuredSubobjectInit(IList, Index, ElemType, in CheckSubElementType()
1113 return CheckScalarType(Entity, IList, ElemType, Index, in CheckSubElementType()
1171 CheckImplicitInitList(Entity, IList, ElemType, Index, StructuredList, in CheckSubElementType()
1188 InitListExpr *IList, QualType DeclType, in CheckComplexType() argument
1201 if (IList->getNumInits() != 2) in CheckComplexType()
1202 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList, in CheckComplexType()
1208 SemaRef.Diag(IList->getLocStart(), diag::ext_complex_component_init) in CheckComplexType()
1209 << IList->getSourceRange(); in CheckComplexType()
1218 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType()
1225 InitListExpr *IList, QualType DeclType, in CheckScalarType() argument
1229 if (Index >= IList->getNumInits()) { in CheckScalarType()
1231 SemaRef.Diag(IList->getLocStart(), in CheckScalarType()
1235 << IList->getSourceRange(); in CheckScalarType()
1242 Expr *expr = IList->getInit(Index); in CheckScalarType()
1285 IList->setInit(Index, ResultExpr); in CheckScalarType()
1296 InitListExpr *IList, QualType DeclType, in CheckReferenceType() argument
1300 if (Index >= IList->getNumInits()) { in CheckReferenceType()
1306 SemaRef.Diag(IList->getLocStart(), in CheckReferenceType()
1309 << IList->getSourceRange(); in CheckReferenceType()
1316 Expr *expr = IList->getInit(Index); in CheckReferenceType()
1319 SemaRef.Diag(IList->getLocStart(), diag::err_init_non_aggr_init_list) in CheckReferenceType()
1320 << DeclType << IList->getSourceRange(); in CheckReferenceType()
1342 IList->setInit(Index, expr); in CheckReferenceType()
1352 InitListExpr *IList, QualType DeclType, in CheckVectorType() argument
1361 if (Index >= IList->getNumInits()) { in CheckVectorType()
1366 IList->getLocEnd()); in CheckVectorType()
1373 Expr *Init = IList->getInit(Index); in CheckVectorType()
1394 IList->setInit(Index, ResultExpr); in CheckVectorType()
1411 if (Index >= IList->getNumInits()) { in CheckVectorType()
1413 CheckEmptyInitializable(ElementEntity, IList->getLocEnd()); in CheckVectorType()
1418 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1439 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1454 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1470 if (Index >= IList->getNumInits()) in CheckVectorType()
1475 QualType IType = IList->getInit(Index)->getType(); in CheckVectorType()
1477 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1490 CheckSubElementType(ElementEntity, IList, VecType, Index, in CheckVectorType()
1499 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1507 InitListExpr *IList, QualType &DeclType, in CheckArrayType() argument
1516 if (Index < IList->getNumInits()) { in CheckArrayType()
1517 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1525 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
1527 IList->getInit(Index)); in CheckArrayType()
1560 while (Index < IList->getNumInits()) { in CheckArrayType()
1561 Expr *Init = IList->getInit(Index); in CheckArrayType()
1571 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckArrayType()
1602 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckArrayType()
1618 SemaRef.Diag(IList->getLocStart(), in CheckArrayType()
1632 IList->getLocEnd()); in CheckArrayType()
1676 InitListExpr *IList, in CheckStructUnionTypes() argument
1695 if (DeclType->isUnionType() && IList->getNumInits() == 0) { in CheckStructUnionTypes()
1720 IList->getLocEnd()); in CheckStructUnionTypes()
1737 while (Index < IList->getNumInits()) { in CheckStructUnionTypes()
1738 Expr *Init = IList->getInit(Index); in CheckStructUnionTypes()
1749 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckStructUnionTypes()
1788 IList->getInit(Index)->getLocStart()); in CheckStructUnionTypes()
1798 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
1819 SemaRef.Diag(IList->getSourceRange().getEnd(), in CheckStructUnionTypes()
1834 IList->getLocEnd()); in CheckStructUnionTypes()
1839 Index >= IList->getNumInits()) in CheckStructUnionTypes()
1842 if (CheckFlexibleArrayInit(Entity, IList->getInit(Index), *Field, in CheckStructUnionTypes()
1852 if (isa<InitListExpr>(IList->getInit(Index))) in CheckStructUnionTypes()
1853 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
1856 CheckImplicitInitList(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
1961 InitListExpr *IList, in CheckDesignatedInitializer() argument
1980 IList->setInit(OldIndex, DIE->getInit()); in CheckDesignatedInitializer()
1982 CheckSubElementType(Entity, IList, CurrentObjectType, Index, in CheckDesignatedInitializer()
1987 if (IList->getInit(OldIndex) != DIE->getInit()) in CheckDesignatedInitializer()
1988 DIE->setInit(IList->getInit(OldIndex)); in CheckDesignatedInitializer()
1989 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
2003 StructuredList = SyntacticToSemantic.lookup(IList); in CheckDesignatedInitializer()
2012 getStructuredSubobjectInit(IList, Index, CurrentObjectType, in CheckDesignatedInitializer()
2253 IList->setInit(Index, DIE->getInit()); in CheckDesignatedInitializer()
2257 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckDesignatedInitializer()
2260 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
2276 if (CheckDesignatedInitializer(MemberEntity, IList, DIE, DesigIdx + 1, in CheckDesignatedInitializer()
2307 CheckStructUnionTypes(Entity, IList, CurrentObjectType, Field, false, Index, in CheckDesignatedInitializer()
2470 if (CheckDesignatedInitializer(ElementEntity, IList, DIE, DesigIdx + 1, in CheckDesignatedInitializer()
2496 CheckArrayType(Entity, IList, CurrentObjectType, DesignatedStartIndex, in CheckDesignatedInitializer()
2505 InitListChecker::getStructuredSubobjectInit(InitListExpr *IList, unsigned Index, in getStructuredSubobjectInit() argument
2515 ExistingInit = SyntacticToSemantic.lookup(IList); in getStructuredSubobjectInit()
2567 NumInits = IList->getNumInits(); in getStructuredSubobjectInit()
2569 } else if (Index < IList->getNumInits()) { in getStructuredSubobjectInit()
2570 if (InitListExpr *SubList = dyn_cast<InitListExpr>(IList->getInit(Index))) { in getStructuredSubobjectInit()
2602 Result->setSyntacticForm(IList); in getStructuredSubobjectInit()
2603 SyntacticToSemantic[IList] = Result; in getStructuredSubobjectInit()