Lines Matching refs:ILE

343                                InitListExpr *ILE, bool &RequiresSecondPass,
346 InitListExpr *ILE, bool &RequiresSecondPass,
483 InitListExpr *ILE,
486 SourceLocation Loc = ILE->getLocEnd();
487 unsigned NumInits = ILE->getNumInits();
491 if (const RecordType *RType = ILE->getType()->getAs<RecordType>())
493 assert(Init < NumInits && "This ILE should have been expanded");
495 if (Init >= NumInits || !ILE->getInit(Init)) {
499 ILE->setInit(Init, Filler);
501 ILE->updateInit(SemaRef.Context, Init, Filler);
515 ILE->setInit(Init, DIE.get());
517 ILE->updateInit(SemaRef.Context, Init, DIE.get());
530 << ILE->getSyntacticForm()->getSourceRange();
547 ILE->setInit(Init, MemberInit.getAs<Expr>());
553 ILE->updateInit(SemaRef.Context, Init, MemberInit.getAs<Expr>());
557 = dyn_cast<InitListExpr>(ILE->getInit(Init)))
561 = dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init)))
571 InitListExpr *ILE,
574 assert((ILE->getType() != SemaRef.Context.VoidTy) &&
577 if (const RecordType *RType = ILE->getType()->getAs<RecordType>()) {
579 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion())
580 FillInEmptyInitForField(0, ILE->getInitializedFieldInUnion(),
581 Entity, ILE, RequiresSecondPass, FillWithNoInit);
586 FillInEmptyInitForField(0, Field, Entity, ILE, RequiresSecondPass,
592 // The fields beyond ILE->getNumInits() are default initialized, so in
593 // order to leave them uninitialized, the ILE is expanded and the extra
599 if (ILE->getNumInits() < NumFields)
600 ILE->resizeInits(SemaRef.Context, NumFields);
610 FillInEmptyInitForField(Init, Field, Entity, ILE, RequiresSecondPass,
629 unsigned NumInits = ILE->getNumInits();
631 if (const ArrayType *AType = SemaRef.Context.getAsArrayType(ILE->getType())) {
637 } else if (const VectorType *VType = ILE->getType()->getAs<VectorType>()) {
643 ElementType = ILE->getType();
653 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr);
654 if (!InitExpr && Init < NumInits && ILE->hasArrayFiller())
655 ILE->setInit(Init, ILE->getArrayFiller());
656 else if (!InitExpr && !ILE->hasArrayFiller()) {
662 ExprResult ElementInit = PerformEmptyInit(SemaRef, ILE->getLocEnd(),
679 ILE->setArrayFiller(Filler);
681 ILE->setInit(Init, Filler);
686 ILE->setArrayFiller(Filler);
695 ILE->updateInit(SemaRef.Context, Init, Filler);
3479 InitListExpr *ILE = cast<InitListExpr>(Args[0]);
3484 if (ILE->getNumInits() != 0 || !DestRecordDecl->hasDefaultConstructor())
3492 Args = MultiExprArg(ILE->getInits(), ILE->getNumInits());
5811 if (InitListExpr *ILE = dyn_cast<InitListExpr>(Init)) {
5812 if (ILE->getNumInits() == 1 && ILE->isGLValue()) {
5814 Init = ILE->getInit(0);
5861 if (CXXStdInitializerListExpr *ILE =
5863 performReferenceExtension(ILE->getSubExpr(), ExtendingEntity);
5867 if (InitListExpr *ILE = dyn_cast<InitListExpr>(Init)) {
5868 if (ILE->getType()->isArrayType()) {
5869 for (unsigned I = 0, N = ILE->getNumInits(); I != N; ++I)
5870 performLifetimeExtension(ILE->getInit(I), ExtendingEntity);
5874 if (CXXRecordDecl *RD = ILE->getType()->getAsCXXRecordDecl()) {
5880 if (RD->isUnion() && ILE->getInitializedFieldInUnion() &&
5881 ILE->getInitializedFieldInUnion()->getType()->isReferenceType())
5882 performReferenceExtension(ILE->getInit(0), ExtendingEntity);
5886 if (Index >= ILE->getNumInits())
5890 Expr *SubInit = ILE->getInit(Index);
6561 InitListExpr *ILE = new (S.Context) InitListExpr(S.Context,
6563 ILE->setSyntacticForm(Syntactic);
6564 ILE->setType(E->getType());
6565 ILE->setValueKind(E->getValueKind());
6566 CurInit = ILE;