Lines Matching refs:DIE
232 InitListExpr *IList, DesignatedInitExpr *DIE,
1193 if (DesignatedInitExpr *DIE = dyn_cast<DesignatedInitExpr>(Init)) { in CheckArrayType() local
1202 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckArrayType()
1351 if (DesignatedInitExpr *DIE = dyn_cast<DesignatedInitExpr>(Init)) { in CheckStructUnionTypes() local
1360 if (CheckDesignatedInitializer(Entity, IList, DIE, 0, in CheckStructUnionTypes()
1475 DesignatedInitExpr *DIE, in ExpandAnonymousFieldDesignator() argument
1486 DIE->getDesignator(DesigIdx)->getDotLoc(), in ExpandAnonymousFieldDesignator()
1487 DIE->getDesignator(DesigIdx)->getFieldLoc())); in ExpandAnonymousFieldDesignator()
1498 DIE->ExpandDesignator(SemaRef.Context, DesigIdx, &Replacements[0], in ExpandAnonymousFieldDesignator()
1521 DesignatedInitExpr *DIE) { in CloneDesignatedInitExpr() argument
1522 unsigned NumIndexExprs = DIE->getNumSubExprs() - 1; in CloneDesignatedInitExpr()
1525 IndexExprs[I] = DIE->getSubExpr(I + 1); in CloneDesignatedInitExpr()
1526 return DesignatedInitExpr::Create(SemaRef.Context, DIE->designators_begin(), in CloneDesignatedInitExpr()
1527 DIE->size(), IndexExprs, in CloneDesignatedInitExpr()
1528 DIE->getEqualOrColonLoc(), in CloneDesignatedInitExpr()
1529 DIE->usesGNUSyntax(), DIE->getInit()); in CloneDesignatedInitExpr()
1590 DesignatedInitExpr *DIE, in CheckDesignatedInitializer() argument
1600 if (DesigIdx == DIE->size()) { in CheckDesignatedInitializer()
1608 IList->setInit(OldIndex, DIE->getInit()); in CheckDesignatedInitializer()
1615 if (IList->getInit(OldIndex) != DIE->getInit()) in CheckDesignatedInitializer()
1616 DIE->setInit(IList->getInit(OldIndex)); in CheckDesignatedInitializer()
1617 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
1622 DesignatedInitExpr::Designator *D = DIE->getDesignator(DesigIdx); in CheckDesignatedInitializer()
1634 DIE->getSourceRange().getEnd())); in CheckDesignatedInitializer()
1680 DIE = CloneDesignatedInitExpr(SemaRef, DIE); in CheckDesignatedInitializer()
1681 ExpandAnonymousFieldDesignator(SemaRef, DIE, DesigIdx, IF); in CheckDesignatedInitializer()
1682 D = DIE->getDesignator(DesigIdx); in CheckDesignatedInitializer()
1796 if ((DesigIdx + 1) != DIE->size()) { in CheckDesignatedInitializer()
1801 = DIE->getDesignator(DesigIdx + 1); in CheckDesignatedInitializer()
1805 DIE->getSourceRange().getEnd()); in CheckDesignatedInitializer()
1812 if (!hadError && !isa<InitListExpr>(DIE->getInit()) && in CheckDesignatedInitializer()
1813 !isa<StringLiteral>(DIE->getInit())) { in CheckDesignatedInitializer()
1816 SemaRef.Diag(DIE->getInit()->getLocStart(), in CheckDesignatedInitializer()
1818 << DIE->getInit()->getSourceRange(); in CheckDesignatedInitializer()
1826 if (!Invalid && CheckFlexibleArrayInit(Entity, DIE->getInit(), *Field, in CheckDesignatedInitializer()
1839 IList->setInit(Index, DIE->getInit()); in CheckDesignatedInitializer()
1846 IList->setInit(OldIndex, DIE); in CheckDesignatedInitializer()
1862 if (CheckDesignatedInitializer(MemberEntity, IList, DIE, DesigIdx + 1, in CheckDesignatedInitializer()
1925 IndexExpr = DIE->getArrayIndex(*D); in CheckDesignatedInitializer()
1932 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()
1934 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()
1935 IndexExpr = DIE->getArrayRangeEnd(*D); in CheckDesignatedInitializer()
1943 DIE->getInit()->HasSideEffects(SemaRef.Context) && !VerifyOnly) in CheckDesignatedInitializer()
2000 if (CheckDesignatedInitializer(ElementEntity, IList, DIE, DesigIdx + 1, in CheckDesignatedInitializer()
2264 DesignatedInitExpr *DIE in ActOnDesignatedInitializer() local
2271 Diag(DIE->getLocStart(), diag::ext_designated_init) in ActOnDesignatedInitializer()
2272 << DIE->getSourceRange(); in ActOnDesignatedInitializer()
2274 return Owned(DIE); in ActOnDesignatedInitializer()