reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaInit.cpp
 2369   if (DesigIdx == DIE->size()) {
 2374     if (DIE->isDirectInit()) {
 2375       Expr *Init = DIE->getInit();
 2379           DIE->getBeginLoc(), Init->getBeginLoc(), Init->getEndLoc());
 2400     IList->setInit(OldIndex, DIE->getInit());
 2407     if (IList->getInit(OldIndex) != DIE->getInit())
 2408       DIE->setInit(IList->getInit(OldIndex));
 2409     IList->setInit(OldIndex, DIE);
 2414   DesignatedInitExpr::Designator *D = DIE->getDesignator(DesigIdx);
 2430             SourceRange(D->getBeginLoc(), DIE->getEndLoc()));
 2446                              SourceRange(D->getBeginLoc(), DIE->getEndLoc()),
 2456                                          ExistingInit, DIE->getEndLoc());
 2506             DIE = CloneDesignatedInitExpr(SemaRef, DIE);
 2506             DIE = CloneDesignatedInitExpr(SemaRef, DIE);
 2507           ExpandAnonymousFieldDesignator(SemaRef, DIE, DesigIdx, IFD);
 2508           D = DIE->getDesignator(DesigIdx);
 2585                 ExistingInit, SourceRange(D->getBeginLoc(), DIE->getEndLoc()));
 2641         SemaRef.Diag(DIE->getBeginLoc(), diag::ext_designated_init_reordered)
 2642             << KnownField << PrevField << DIE->getSourceRange();
 2668       if ((DesigIdx + 1) != DIE->size()) {
 2673             = DIE->getDesignator(DesigIdx + 1);
 2676               << SourceRange(NextD->getBeginLoc(), DIE->getEndLoc());
 2683       if (!hadError && !isa<InitListExpr>(DIE->getInit()) &&
 2684           !isa<StringLiteral>(DIE->getInit())) {
 2687           SemaRef.Diag(DIE->getInit()->getBeginLoc(),
 2689               << DIE->getInit()->getSourceRange();
 2697       if (!Invalid && CheckFlexibleArrayInit(Entity, DIE->getInit(), *Field,
 2710       IList->setInit(Index, DIE->getInit());
 2717       IList->setInit(OldIndex, DIE);
 2733       if (CheckDesignatedInitializer(MemberEntity, IList, DIE, DesigIdx + 1,
 2799     IndexExpr = DIE->getArrayIndex(*D);
 2806       DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context);
 2808       DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context);
 2809     IndexExpr = DIE->getArrayRangeEnd(*D);
 2817         DIE->getInit()->HasSideEffects(SemaRef.Context) && !VerifyOnly)
 2937             ElementEntity, IList, DIE, DesigIdx + 1, ElementType, nullptr,