Lines Matching refs:getInit
463 if (Init >= NumInits || !ILE->getInit(Init)) { in FillInEmptyInitForField()
517 = dyn_cast<InitListExpr>(ILE->getInit(Init))) in FillInEmptyInitForField()
596 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations()
708 SemaRef.Diag(ParentIList->getInit(Index)->getLocStart(), in CheckImplicitInitList()
719 SourceRange(ParentIList->getInit(Index)->getLocStart(), in CheckImplicitInitList()
738 = ParentIList->getInit(EndIndex)->getSourceRange().getEnd(); in CheckImplicitInitList()
858 IsStringInit(StructuredList->getInit(0), T, SemaRef.Context) == in CheckExplicitInitList()
866 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
867 << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
889 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList()
890 << initKind << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
895 IList->getNumInits() == 1 && !isa<InitListExpr>(IList->getInit(0))) in CheckExplicitInitList()
962 Expr *expr = IList->getInit(Index); in CheckSubElementType()
1156 Expr *expr = IList->getInit(Index); in CheckScalarType()
1230 Expr *expr = IList->getInit(Index); in CheckReferenceType()
1287 Expr *Init = IList->getInit(Index); in CheckVectorType()
1389 QualType IType = IList->getInit(Index)->getType(); in CheckVectorType()
1431 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1439 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
1441 IList->getInit(Index)); in CheckArrayType()
1475 Expr *Init = IList->getInit(Index); in CheckArrayType()
1652 Expr *Init = IList->getInit(Index); in CheckStructUnionTypes()
1702 IList->getInit(Index)->getLocStart()); in CheckStructUnionTypes()
1756 if (CheckFlexibleArrayInit(Entity, IList->getInit(Index), *Field, in CheckStructUnionTypes()
1766 if (isa<InitListExpr>(IList->getInit(Index))) in CheckStructUnionTypes()
1815 DIE->usesGNUSyntax(), DIE->getInit()); in CloneDesignatedInitExpr()
1894 IList->setInit(OldIndex, DIE->getInit()); in CheckDesignatedInitializer()
1901 if (IList->getInit(OldIndex) != DIE->getInit()) in CheckDesignatedInitializer()
1902 DIE->setInit(IList->getInit(OldIndex)); in CheckDesignatedInitializer()
2030 Expr *ExistingInit = StructuredList->getInit(0); in CheckDesignatedInitializer()
2085 if (!hadError && !isa<InitListExpr>(DIE->getInit()) && in CheckDesignatedInitializer()
2086 !isa<StringLiteral>(DIE->getInit())) { in CheckDesignatedInitializer()
2089 SemaRef.Diag(DIE->getInit()->getLocStart(), in CheckDesignatedInitializer()
2091 << DIE->getInit()->getSourceRange(); in CheckDesignatedInitializer()
2099 if (!Invalid && CheckFlexibleArrayInit(Entity, DIE->getInit(), *Field, in CheckDesignatedInitializer()
2112 IList->setInit(Index, DIE->getInit()); in CheckDesignatedInitializer()
2216 DIE->getInit()->HasSideEffects(SemaRef.Context) && !VerifyOnly) in CheckDesignatedInitializer()
2254 Expr *SubExpr = StructuredList->getInit(0)->IgnoreParens(); in CheckDesignatedInitializer()
2377 ExistingInit = StructuredList->getInit(StructuredIndex); in getStructuredSubobjectInit()
2421 if (InitListExpr *SubList = dyn_cast<InitListExpr>(IList->getInit(Index))) { in getStructuredSubobjectInit()
3084 S.Type = Syntactic->getInit(0)->getType(); in RewrapReferenceInitList()
3431 Expr *Initializer = InitList->getInit(0); in TryReferenceListInitialization()
3513 QualType InitType = InitList->getInit(0)->getType(); in TryListInitialization()
3516 Expr *InitAsExpr = InitList->getInit(0); in TryListInitialization()
3524 Expr *SubInit[1] = {InitList->getInit(0)}; in TryListInitialization()
3578 InitList->getInit(0)->getType()->isRecordType()) { in TryListInitialization()
3598 Expr *SubInit[1] = { InitList->getInit(0) }; in TryListInitialization()
5611 Init = ILE->getInit(0); in performReferenceExtension()
5667 performLifetimeExtension(ILE->getInit(I), ExtendingEntity); in performLifetimeExtension()
5679 performReferenceExtension(ILE->getInit(0), ExtendingEntity); in performLifetimeExtension()
5687 Expr *SubInit = ILE->getInit(Index); in performLifetimeExtension()
6237 CurInit = cast<InitListExpr>(CurInit.get())->getInit(0); in Perform()
6561 if (VD->getInit() || VD->getLocEnd().isMacroID()) in maybeEmitZeroInitializationFixit()
6758 R = SourceRange(InitList->getInit(0)->getLocEnd(), InitList->getLocEnd()); in Diagnose()