Lines Matching refs:ILE
459 InitListExpr *ILE, bool &RequiresSecondPass,
463 InitListExpr *ILE, bool &RequiresSecondPass,
466 InitListExpr *ILE, bool &RequiresSecondPass,
611 const InitializedEntity &ParentEntity, InitListExpr *ILE, in FillInEmptyInitForBase() argument
616 if (Init >= ILE->getNumInits() || !ILE->getInit(Init)) { in FillInEmptyInitForBase()
619 : PerformEmptyInit(ILE->getEndLoc(), BaseEntity); in FillInEmptyInitForBase()
626 assert(Init < ILE->getNumInits() && "should have been expanded"); in FillInEmptyInitForBase()
627 ILE->setInit(Init, BaseInit.getAs<Expr>()); in FillInEmptyInitForBase()
630 dyn_cast<InitListExpr>(ILE->getInit(Init))) { in FillInEmptyInitForBase()
632 ILE, Init, FillWithNoInit); in FillInEmptyInitForBase()
634 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) { in FillInEmptyInitForBase()
636 RequiresSecondPass, ILE, Init, in FillInEmptyInitForBase()
643 InitListExpr *ILE, in FillInEmptyInitForField() argument
646 SourceLocation Loc = ILE->getEndLoc(); in FillInEmptyInitForField()
647 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitForField()
651 if (Init >= NumInits || !ILE->getInit(Init)) { in FillInEmptyInitForField()
652 if (const RecordType *RType = ILE->getType()->getAs<RecordType>()) in FillInEmptyInitForField()
661 ILE->setInit(Init, Filler); in FillInEmptyInitForField()
663 ILE->updateInit(SemaRef.Context, Init, Filler); in FillInEmptyInitForField()
681 ILE->setInit(Init, DIE.get()); in FillInEmptyInitForField()
683 ILE->updateInit(SemaRef.Context, Init, DIE.get()); in FillInEmptyInitForField()
697 << ILE->getSyntacticForm()->getSourceRange(); in FillInEmptyInitForField()
714 ILE->setInit(Init, MemberInit.getAs<Expr>()); in FillInEmptyInitForField()
720 ILE->updateInit(SemaRef.Context, Init, MemberInit.getAs<Expr>()); in FillInEmptyInitForField()
724 = dyn_cast<InitListExpr>(ILE->getInit(Init))) { in FillInEmptyInitForField()
726 RequiresSecondPass, ILE, Init, FillWithNoInit); in FillInEmptyInitForField()
728 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) { in FillInEmptyInitForField()
730 RequiresSecondPass, ILE, Init, in FillInEmptyInitForField()
740 InitListExpr *ILE, in FillInEmptyInitializations() argument
745 assert((ILE->getType() != SemaRef.Context.VoidTy) && in FillInEmptyInitializations()
771 if (ILE->isTransparent()) in FillInEmptyInitializations()
774 if (const RecordType *RType = ILE->getType()->getAs<RecordType>()) { in FillInEmptyInitializations()
776 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion()) in FillInEmptyInitializations()
777 FillInEmptyInitForField(0, ILE->getInitializedFieldInUnion(), in FillInEmptyInitializations()
778 Entity, ILE, RequiresSecondPass, FillWithNoInit); in FillInEmptyInitializations()
783 FillInEmptyInitForField(0, Field, Entity, ILE, RequiresSecondPass, in FillInEmptyInitializations()
792 unsigned NumElems = numStructUnionElements(ILE->getType()); in FillInEmptyInitializations()
795 if (!VerifyOnly && ILE->getNumInits() < NumElems) in FillInEmptyInitializations()
796 ILE->resizeInits(SemaRef.Context, NumElems); in FillInEmptyInitializations()
805 FillInEmptyInitForBase(Init, Base, Entity, ILE, RequiresSecondPass, in FillInEmptyInitializations()
818 FillInEmptyInitForField(Init, Field, Entity, ILE, RequiresSecondPass, in FillInEmptyInitializations()
837 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitializations()
839 if (const ArrayType *AType = SemaRef.Context.getAsArrayType(ILE->getType())) { in FillInEmptyInitializations()
849 } else if (const VectorType *VType = ILE->getType()->getAs<VectorType>()) { in FillInEmptyInitializations()
855 ElementType = ILE->getType(); in FillInEmptyInitializations()
866 if (Init >= NumInits && (ILE->hasArrayFiller() || SkipEmptyInitChecks)) in FillInEmptyInitializations()
869 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations()
870 if (!InitExpr && Init < NumInits && ILE->hasArrayFiller()) in FillInEmptyInitializations()
871 ILE->setInit(Init, ILE->getArrayFiller()); in FillInEmptyInitializations()
872 else if (!InitExpr && !ILE->hasArrayFiller()) { in FillInEmptyInitializations()
884 PerformEmptyInit(ILE->getEndLoc(), ElementEntity); in FillInEmptyInitializations()
901 ILE->setArrayFiller(Filler); in FillInEmptyInitializations()
903 ILE->setInit(Init, Filler); in FillInEmptyInitializations()
908 ILE->setArrayFiller(Filler); in FillInEmptyInitializations()
917 ILE->updateInit(SemaRef.Context, Init, Filler); in FillInEmptyInitializations()
924 ILE, Init, FillWithNoInit); in FillInEmptyInitializations()
928 RequiresSecondPass, ILE, Init, in FillInEmptyInitializations()
4025 InitListExpr *ILE = in TryConstructorInitialization() local
4028 ILE ? MultiExprArg(ILE->getInits(), ILE->getNumInits()) : Args; in TryConstructorInitialization()
4054 if (ILE) in TryConstructorInitialization()
4055 Sequence.RewrapReferenceInitList(DestType, ILE); in TryConstructorInitialization()
4139 Sequence.RewrapReferenceInitList(Entity.getType(), ILE); in TryConstructorInitialization()
7016 if (InitListExpr *ILE = dyn_cast<InitListExpr>(Init)) { in visitLocalsRetainedByReferenceBinding() local
7018 if (ILE->isTransparent()) in visitLocalsRetainedByReferenceBinding()
7019 Init = ILE->getInit(0); in visitLocalsRetainedByReferenceBinding()
7226 if (auto *ILE = dyn_cast<CXXStdInitializerListExpr>(Init)) in visitLocalsRetainedByInitializer() local
7227 return visitLocalsRetainedByReferenceBinding(Path, ILE->getSubExpr(), in visitLocalsRetainedByInitializer()
7231 if (InitListExpr *ILE = dyn_cast<InitListExpr>(Init)) { in visitLocalsRetainedByInitializer() local
7238 if (ILE->isTransparent()) in visitLocalsRetainedByInitializer()
7239 return visitLocalsRetainedByInitializer(Path, ILE->getInit(0), Visit, in visitLocalsRetainedByInitializer()
7243 if (ILE->getType()->isArrayType()) { in visitLocalsRetainedByInitializer()
7244 for (unsigned I = 0, N = ILE->getNumInits(); I != N; ++I) in visitLocalsRetainedByInitializer()
7245 visitLocalsRetainedByInitializer(Path, ILE->getInit(I), Visit, in visitLocalsRetainedByInitializer()
7251 if (CXXRecordDecl *RD = ILE->getType()->getAsCXXRecordDecl()) { in visitLocalsRetainedByInitializer()
7257 if (RD->isUnion() && ILE->getInitializedFieldInUnion() && in visitLocalsRetainedByInitializer()
7258 ILE->getInitializedFieldInUnion()->getType()->isReferenceType()) in visitLocalsRetainedByInitializer()
7259 visitLocalsRetainedByReferenceBinding(Path, ILE->getInit(0), in visitLocalsRetainedByInitializer()
7264 for (; Index < RD->getNumBases() && Index < ILE->getNumInits(); ++Index) in visitLocalsRetainedByInitializer()
7265 visitLocalsRetainedByInitializer(Path, ILE->getInit(Index), Visit, in visitLocalsRetainedByInitializer()
7269 if (Index >= ILE->getNumInits()) in visitLocalsRetainedByInitializer()
7273 Expr *SubInit = ILE->getInit(Index); in visitLocalsRetainedByInitializer()
8445 InitListExpr *ILE = new (S.Context) InitListExpr(S.Context, in Perform() local
8447 ILE->setSyntacticForm(Syntactic); in Perform()
8448 ILE->setType(E->getType()); in Perform()
8449 ILE->setValueKind(E->getValueKind()); in Perform()
8450 CurInit = ILE; in Perform()