Lines Matching refs:StructuredList
247 unsigned &Index, InitListExpr *StructuredList,
251 InitListExpr *StructuredList,
257 InitListExpr *StructuredList,
263 InitListExpr *StructuredList,
268 InitListExpr *StructuredList,
273 InitListExpr *StructuredList,
278 InitListExpr *StructuredList,
282 InitListExpr *StructuredList,
289 InitListExpr *StructuredList,
296 InitListExpr *StructuredList,
305 InitListExpr *StructuredList,
311 InitListExpr *StructuredList,
315 void UpdateStructuredListElement(InitListExpr *StructuredList,
825 InitListExpr *StructuredList, in CheckImplicitInitList() argument
849 = getStructuredSubobjectInit(ParentIList, Index, T, StructuredList, in CheckImplicitInitList()
958 InitListExpr *StructuredList, in CheckExplicitInitList() argument
961 SyntacticToSemantic[IList] = StructuredList; in CheckExplicitInitList()
962 StructuredList->setSyntacticForm(IList); in CheckExplicitInitList()
967 Index, StructuredList, StructuredIndex, TopLevelObject); in CheckExplicitInitList()
973 StructuredList->setType(ExprTy); in CheckExplicitInitList()
990 IsStringInit(StructuredList->getInit(0), T, SemaRef.Context) == in CheckExplicitInitList()
1003 QualType CurrentObjectType = StructuredList->getType(); in CheckExplicitInitList()
1036 InitListExpr *StructuredList, in CheckListElementTypes() argument
1043 StructuredList, StructuredIndex); in CheckListElementTypes()
1046 StructuredList, StructuredIndex); in CheckListElementTypes()
1049 StructuredList, StructuredIndex); in CheckListElementTypes()
1060 SubobjectIsDesignatorContext, Index, StructuredList, in CheckListElementTypes()
1068 StructuredList, StructuredIndex); in CheckListElementTypes()
1078 StructuredList, StructuredIndex); in CheckListElementTypes()
1096 InitListExpr *StructuredList, in CheckSubElementType() argument
1102 StructuredList, StructuredIndex); in CheckSubElementType()
1112 StructuredList, StructuredIndex, in CheckSubElementType()
1136 UpdateStructuredListElement(StructuredList, StructuredIndex, expr); in CheckSubElementType()
1165 UpdateStructuredListElement(StructuredList, StructuredIndex, in CheckSubElementType()
1177 StructuredList, StructuredIndex); in CheckSubElementType()
1187 UpdateStructuredListElement(StructuredList, StructuredIndex, expr); in CheckSubElementType()
1217 UpdateStructuredListElement(StructuredList, StructuredIndex, in CheckSubElementType()
1234 CheckImplicitInitList(Entity, IList, ElemType, Index, StructuredList, in CheckSubElementType()
1253 InitListExpr *StructuredList, in CheckComplexType() argument
1265 return CheckScalarType(Entity, IList, DeclType, Index, StructuredList, in CheckComplexType()
1282 StructuredList, StructuredIndex); in CheckComplexType()
1289 InitListExpr *StructuredList, in CheckScalarType() argument
1313 CheckScalarType(Entity, SubIList, DeclType, Index, StructuredList, in CheckScalarType()
1353 UpdateStructuredListElement(StructuredList, StructuredIndex, ResultExpr); in CheckScalarType()
1360 InitListExpr *StructuredList, in CheckReferenceType() argument
1409 UpdateStructuredListElement(StructuredList, StructuredIndex, expr); in CheckReferenceType()
1416 InitListExpr *StructuredList, in CheckVectorType() argument
1462 UpdateStructuredListElement(StructuredList, StructuredIndex, in CheckVectorType()
1481 StructuredList, StructuredIndex); in CheckVectorType()
1540 StructuredList, StructuredIndex); in CheckVectorType()
1553 StructuredList, StructuredIndex); in CheckVectorType()
1573 InitListExpr *StructuredList, in CheckArrayType() argument
1588 UpdateStructuredListElement(StructuredList, StructuredIndex, in CheckArrayType()
1590 StructuredList->resizeInits(SemaRef.Context, StructuredIndex); in CheckArrayType()
1635 StructuredList, StructuredIndex, true, in CheckArrayType()
1665 StructuredList, StructuredIndex); in CheckArrayType()
1741 InitListExpr *StructuredList, unsigned &StructuredIndex, in CheckStructUnionTypes() argument
1764 StructuredList->setInitializedFieldInUnion(*Field); in CheckStructUnionTypes()
1781 StructuredList->setInitializedFieldInUnion(*Field); in CheckStructUnionTypes()
1804 StructuredList, StructuredIndex); in CheckStructUnionTypes()
1832 StructuredList, StructuredIndex, in CheckStructUnionTypes()
1880 StructuredList, StructuredIndex); in CheckStructUnionTypes()
1885 StructuredList->setInitializedFieldInUnion(*Field); in CheckStructUnionTypes()
1935 StructuredList, StructuredIndex); in CheckStructUnionTypes()
1938 StructuredList, StructuredIndex); in CheckStructUnionTypes()
2049 InitListExpr *StructuredList, in CheckDesignatedInitializer() argument
2064 StructuredList, StructuredIndex); in CheckDesignatedInitializer()
2078 assert((IsFirstDesignator || StructuredList) && in CheckDesignatedInitializer()
2084 StructuredList = SyntacticToSemantic.lookup(IList); in CheckDesignatedInitializer()
2086 Expr *ExistingInit = StructuredIndex < StructuredList->getNumInits() ? in CheckDesignatedInitializer()
2087 StructuredList->getInit(StructuredIndex) : nullptr; in CheckDesignatedInitializer()
2088 if (!ExistingInit && StructuredList->hasArrayFiller()) in CheckDesignatedInitializer()
2089 ExistingInit = StructuredList->getArrayFiller(); in CheckDesignatedInitializer()
2092 StructuredList = in CheckDesignatedInitializer()
2094 StructuredList, StructuredIndex, in CheckDesignatedInitializer()
2098 StructuredList = Result; in CheckDesignatedInitializer()
2102 StructuredList = E->getUpdater(); in CheckDesignatedInitializer()
2108 StructuredList->updateInit(SemaRef.Context, StructuredIndex, DIUE); in CheckDesignatedInitializer()
2109 StructuredList = DIUE->getUpdater(); in CheckDesignatedInitializer()
2143 assert(StructuredList && "Expected a structured initializer list"); in CheckDesignatedInitializer()
2245 FieldDecl *CurrentField = StructuredList->getInitializedFieldInUnion(); in CheckDesignatedInitializer()
2247 assert(StructuredList->getNumInits() == 1 in CheckDesignatedInitializer()
2254 Expr *ExistingInit = StructuredList->getInit(0); in CheckDesignatedInitializer()
2261 StructuredList->resizeInits(SemaRef.Context, 0); in CheckDesignatedInitializer()
2262 StructuredList->setInitializedFieldInUnion(nullptr); in CheckDesignatedInitializer()
2265 StructuredList->setInitializedFieldInUnion(*Field); in CheckDesignatedInitializer()
2286 if (FieldIndex >= StructuredList->getNumInits()) in CheckDesignatedInitializer()
2287 StructuredList->resizeInits(SemaRef.Context, FieldIndex + 1); in CheckDesignatedInitializer()
2341 StructuredList, newStructuredIndex); in CheckDesignatedInitializer()
2361 StructuredList, newStructuredIndex, in CheckDesignatedInitializer()
2394 false, Index, StructuredList, FieldIndex); in CheckDesignatedInitializer()
2475 if (!VerifyOnly && StructuredList->isStringLiteralInit()) { in CheckDesignatedInitializer()
2479 Expr *SubExpr = StructuredList->getInit(0)->IgnoreParens(); in CheckDesignatedInitializer()
2495 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2506 StructuredList->updateInit(Context, i, Init); in CheckDesignatedInitializer()
2517 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2528 StructuredList->updateInit(Context, i, Init); in CheckDesignatedInitializer()
2536 DesignatedEndIndex.getZExtValue() >= StructuredList->getNumInits()) in CheckDesignatedInitializer()
2537 StructuredList->resizeInits(SemaRef.Context, in CheckDesignatedInitializer()
2558 nullptr, Index, StructuredList, ElementIndex, in CheckDesignatedInitializer()
2584 StructuredList, ElementIndex); in CheckDesignatedInitializer()
2593 InitListExpr *StructuredList, in getStructuredSubobjectInit() argument
2600 if (!StructuredList) in getStructuredSubobjectInit()
2602 else if (StructuredIndex < StructuredList->getNumInits()) in getStructuredSubobjectInit()
2603 ExistingInit = StructuredList->getInit(StructuredIndex); in getStructuredSubobjectInit()
2652 if (!StructuredList) { in getStructuredSubobjectInit()
2685 if (StructuredList) in getStructuredSubobjectInit()
2686 StructuredList->updateInit(SemaRef.Context, StructuredIndex, Result); in getStructuredSubobjectInit()
2697 void InitListChecker::UpdateStructuredListElement(InitListExpr *StructuredList, in UpdateStructuredListElement() argument
2701 if (!StructuredList) in UpdateStructuredListElement()
2704 if (Expr *PrevInit = StructuredList->updateInit(SemaRef.Context, in UpdateStructuredListElement()