Lines Matching refs:IList
250 InitListExpr *IList, QualType &T,
254 InitListExpr *IList, QualType &DeclType,
261 InitListExpr *IList, QualType ElemType,
266 InitListExpr *IList, QualType DeclType,
271 InitListExpr *IList, QualType DeclType,
276 InitListExpr *IList, QualType DeclType,
281 InitListExpr *IList, QualType DeclType, unsigned &Index,
285 InitListExpr *IList, QualType DeclType,
293 InitListExpr *IList, QualType &DeclType,
299 InitListExpr *IList, DesignatedInitExpr *DIE,
309 InitListExpr *getStructuredSubobjectInit(InitListExpr *IList, unsigned Index,
957 InitListExpr *IList, QualType &T, in CheckExplicitInitList() argument
961 SyntacticToSemantic[IList] = StructuredList; in CheckExplicitInitList()
962 StructuredList->setSyntacticForm(IList); in CheckExplicitInitList()
966 CheckListElementTypes(Entity, IList, T, /*SubobjectIsDesignatorContext=*/true, in CheckExplicitInitList()
972 IList->setType(ExprTy); in CheckExplicitInitList()
978 if (Index < IList->getNumInits()) { in CheckExplicitInitList()
983 IList->getType()->isVectorType())) { in CheckExplicitInitList()
998 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
999 << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
1021 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
1022 << initKind << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
1027 IList->getNumInits() == 1 && !isa<InitListExpr>(IList->getInit(0))) in CheckExplicitInitList()
1028 warnBracedScalarInit(SemaRef, Entity, IList->getSourceRange()); in CheckExplicitInitList()
1032 InitListExpr *IList, in CheckListElementTypes() argument
1042 CheckComplexType(Entity, IList, DeclType, Index, in CheckListElementTypes()
1045 CheckScalarType(Entity, IList, DeclType, Index, in CheckListElementTypes()
1048 CheckVectorType(Entity, IList, DeclType, Index, in CheckListElementTypes()
1059 CheckStructUnionTypes(Entity, IList, DeclType, Bases, RD->field_begin(), in CheckListElementTypes()
1066 CheckArrayType(Entity, IList, DeclType, Zero, in CheckListElementTypes()
1073 SemaRef.Diag(IList->getLocStart(), diag::err_illegal_initializer_type) in CheckListElementTypes()
1077 CheckReferenceType(Entity, IList, DeclType, Index, in CheckListElementTypes()
1081 SemaRef.Diag(IList->getLocStart(), diag::err_init_objc_class) in CheckListElementTypes()
1086 SemaRef.Diag(IList->getLocStart(), diag::err_illegal_initializer_type) in CheckListElementTypes()
1093 InitListExpr *IList, in CheckSubElementType() argument
1098 Expr *expr = IList->getInit(Index); in CheckSubElementType()
1101 return CheckReferenceType(Entity, IList, ElemType, Index, in CheckSubElementType()
1111 = getStructuredSubobjectInit(IList, Index, ElemType, in CheckSubElementType()
1176 return CheckScalarType(Entity, IList, ElemType, Index, in CheckSubElementType()
1234 CheckImplicitInitList(Entity, IList, ElemType, Index, StructuredList, in CheckSubElementType()
1251 InitListExpr *IList, QualType DeclType, in CheckComplexType() argument
1264 if (IList->getNumInits() != 2) in CheckComplexType()
1265 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList, in CheckComplexType()
1271 SemaRef.Diag(IList->getLocStart(), diag::ext_complex_component_init) in CheckComplexType()
1272 << IList->getSourceRange(); in CheckComplexType()
1281 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType()
1287 InitListExpr *IList, QualType DeclType, in CheckScalarType() argument
1291 if (Index >= IList->getNumInits()) { in CheckScalarType()
1293 SemaRef.Diag(IList->getLocStart(), in CheckScalarType()
1297 << IList->getSourceRange(); in CheckScalarType()
1304 Expr *expr = IList->getInit(Index); in CheckScalarType()
1347 IList->setInit(Index, ResultExpr); in CheckScalarType()
1358 InitListExpr *IList, QualType DeclType, in CheckReferenceType() argument
1362 if (Index >= IList->getNumInits()) { in CheckReferenceType()
1368 SemaRef.Diag(IList->getLocStart(), in CheckReferenceType()
1371 << IList->getSourceRange(); in CheckReferenceType()
1378 Expr *expr = IList->getInit(Index); in CheckReferenceType()
1381 SemaRef.Diag(IList->getLocStart(), diag::err_init_non_aggr_init_list) in CheckReferenceType()
1382 << DeclType << IList->getSourceRange(); in CheckReferenceType()
1404 IList->setInit(Index, expr); in CheckReferenceType()
1414 InitListExpr *IList, QualType DeclType, in CheckVectorType() argument
1423 if (Index >= IList->getNumInits()) { in CheckVectorType()
1428 IList->getLocEnd()); in CheckVectorType()
1435 Expr *Init = IList->getInit(Index); in CheckVectorType()
1456 IList->setInit(Index, ResultExpr); in CheckVectorType()
1473 if (Index >= IList->getNumInits()) { in CheckVectorType()
1475 CheckEmptyInitializable(ElementEntity, IList->getLocEnd()); in CheckVectorType()
1480 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1501 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1516 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1532 if (Index >= IList->getNumInits()) in CheckVectorType()
1537 QualType IType = IList->getInit(Index)->getType(); in CheckVectorType()
1539 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1552 CheckSubElementType(ElementEntity, IList, VecType, Index, in CheckVectorType()
1561 SemaRef.Diag(IList->getLocStart(), in CheckVectorType()
1569 InitListExpr *IList, QualType &DeclType, in CheckArrayType() argument
1578 if (Index < IList->getNumInits()) { in CheckArrayType()
1579 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1587 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
1589 IList->getInit(Index)); in CheckArrayType()
1622 while (Index < IList->getNumInits()) { in CheckArrayType()
1623 Expr *Init = IList->getInit(Index); in CheckArrayType()
1633 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckArrayType()
1664 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckArrayType()
1680 SemaRef.Diag(IList->getLocStart(), in CheckArrayType()
1694 IList->getLocEnd()); in CheckArrayType()
1738 const InitializedEntity &Entity, InitListExpr *IList, QualType DeclType, in CheckStructUnionTypes() argument
1754 if (DeclType->isUnionType() && IList->getNumInits() == 0) { in CheckStructUnionTypes()
1779 IList->getLocEnd()); in CheckStructUnionTypes()
1792 Expr *Init = Index < IList->getNumInits() ? IList->getInit(Index) : nullptr; in CheckStructUnionTypes()
1793 SourceLocation InitLoc = Init ? Init->getLocStart() : IList->getLocEnd(); in CheckStructUnionTypes()
1803 CheckSubElementType(BaseEntity, IList, Base.getType(), Index, in CheckStructUnionTypes()
1818 while (Index < IList->getNumInits()) { in CheckStructUnionTypes()
1819 Expr *Init = IList->getInit(Index); in CheckStructUnionTypes()
1830 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckStructUnionTypes()
1869 IList->getInit(Index)->getLocStart()); in CheckStructUnionTypes()
1879 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
1900 SemaRef.Diag(IList->getSourceRange().getEnd(), in CheckStructUnionTypes()
1915 IList->getLocEnd()); in CheckStructUnionTypes()
1920 Index >= IList->getNumInits()) in CheckStructUnionTypes()
1923 if (CheckFlexibleArrayInit(Entity, IList->getInit(Index), *Field, in CheckStructUnionTypes()
1933 if (isa<InitListExpr>(IList->getInit(Index))) in CheckStructUnionTypes()
1934 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
1937 CheckImplicitInitList(MemberEntity, IList, Field->getType(), Index, in CheckStructUnionTypes()
2042 InitListExpr *IList, in CheckDesignatedInitializer() argument
2061 IList->setInit(OldIndex, DIE->getInit()); in CheckDesignatedInitializer()
2063 CheckSubElementType(Entity, IList, CurrentObjectType, Index, in CheckDesignatedInitializer()
2068 if (IList->getInit(OldIndex) != DIE->getInit()) in CheckDesignatedInitializer()
2069 DIE->setInit(IList->getInit(OldIndex)); in CheckDesignatedInitializer()
2070 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
2084 StructuredList = SyntacticToSemantic.lookup(IList); in CheckDesignatedInitializer()
2093 getStructuredSubobjectInit(IList, Index, CurrentObjectType, in CheckDesignatedInitializer()
2336 IList->setInit(Index, DIE->getInit()); in CheckDesignatedInitializer()
2340 CheckSubElementType(MemberEntity, IList, Field->getType(), Index, in CheckDesignatedInitializer()
2343 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
2359 if (CheckDesignatedInitializer(MemberEntity, IList, DIE, DesigIdx + 1, in CheckDesignatedInitializer()
2393 CheckStructUnionTypes(Entity, IList, CurrentObjectType, NoBases, Field, in CheckDesignatedInitializer()
2557 ElementEntity, IList, DIE, DesigIdx + 1, ElementType, nullptr, in CheckDesignatedInitializer()
2582 CheckArrayType(Entity, IList, CurrentObjectType, DesignatedStartIndex, in CheckDesignatedInitializer()
2591 InitListChecker::getStructuredSubobjectInit(InitListExpr *IList, unsigned Index, in getStructuredSubobjectInit() argument
2601 ExistingInit = SyntacticToSemantic.lookup(IList); in getStructuredSubobjectInit()
2653 NumInits = IList->getNumInits(); in getStructuredSubobjectInit()
2655 } else if (Index < IList->getNumInits()) { in getStructuredSubobjectInit()
2656 if (InitListExpr *SubList = dyn_cast<InitListExpr>(IList->getInit(Index))) { in getStructuredSubobjectInit()
2688 Result->setSyntacticForm(IList); in getStructuredSubobjectInit()
2689 SyntacticToSemantic[IList] = Result; in getStructuredSubobjectInit()