Home
last modified time | relevance | path

Searched refs:NumInits (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Sema/
DSemaInit.cpp531 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitForField() local
537 assert(Init < NumInits && "This ILE should have been expanded"); in FillInEmptyInitForField()
539 if (Init >= NumInits || !ILE->getInit(Init)) { in FillInEmptyInitForField()
542 if (Init < NumInits) in FillInEmptyInitForField()
558 if (Init < NumInits) in FillInEmptyInitForField()
591 } else if (Init < NumInits) { in FillInEmptyInitForField()
685 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitializations() local
686 unsigned NumElements = NumInits; in FillInEmptyInitializations()
709 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations()
710 if (!InitExpr && Init < NumInits && ILE->hasArrayFiller()) in FillInEmptyInitializations()
[all …]
DSemaExprCXX.cpp1527 unsigned NumInits = Initializer ? 1 : 0; in BuildCXXNew() local
1531 NumInits = List->getNumExprs(); in BuildCXXNew()
1536 if (initStyle == CXXNewExpr::NoInit || NumInits == 0) in BuildCXXNew()
1540 (NumInits == 1 && isa<InitListExpr>(Inits[0]))) in BuildCXXNew()
1544 if (NumInits > 1) { in BuildCXXNew()
1806 Inits[NumInits - 1]->getLocEnd()); in BuildCXXNew()
1825 llvm::makeArrayRef(Inits, NumInits))) { in BuildCXXNew()
1845 InitializationSequence InitSeq(*this, Entity, Kind, MultiExprArg(Inits, NumInits)); in BuildCXXNew()
1847 MultiExprArg(Inits, NumInits)); in BuildCXXNew()
DSemaOverload.cpp4790 unsigned NumInits = From->getNumInits(); in TryListConversion() local
4791 if (NumInits == 1 && !isa<InitListExpr>(From->getInit(0))) in TryListConversion()
4798 else if (NumInits == 0) { in TryListConversion()
/external/clang/lib/AST/
DExpr.cpp1788 void InitListExpr::reserveInits(const ASTContext &C, unsigned NumInits) { in reserveInits() argument
1789 if (NumInits > InitExprs.size()) in reserveInits()
1790 InitExprs.reserve(C, NumInits); in reserveInits()
1793 void InitListExpr::resizeInits(const ASTContext &C, unsigned NumInits) { in resizeInits() argument
1794 InitExprs.resize(C, NumInits, nullptr); in resizeInits()
DExprConstant.cpp5941 unsigned NumInits = E->getNumInits(); in VisitInitListExpr() local
5954 if (CountInits < NumInits in VisitInitListExpr()
5965 if (CountInits < NumInits) { in VisitInitListExpr()
5974 if (CountInits < NumInits) { in VisitInitListExpr()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp1129 size_t NumInits = CurGlobalVar->getInitializers().size(); in verifyNoMissingInitializers() local
1130 if (InitializersNeeded != NumInits) { in verifyNoMissingInitializers()
1137 StrBuf << ". Found: " << NumInits; in verifyNoMissingInitializers()
1139 InitializersNeeded = NumInits; in verifyNoMissingInitializers()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp761 unsigned NumInits = Record[Idx++]; in VisitInitListExpr() local
762 E->reserveInits(Reader.getContext(), NumInits); in VisitInitListExpr()
764 for (unsigned I = 0; I != NumInits; ++I) { in VisitInitListExpr()
769 for (unsigned I = 0; I != NumInits; ++I) in VisitInitListExpr()
/external/clang/include/clang/AST/
DExpr.h3809 void reserveInits(const ASTContext &C, unsigned NumInits);
3817 void resizeInits(const ASTContext &Context, unsigned NumInits);