Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaInit.cpp460 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitForField() local
463 if (Init >= NumInits || !ILE->getInit(Init)) { in FillInEmptyInitForField()
474 if (Init < NumInits) in FillInEmptyInitForField()
506 } else if (Init < NumInits) { in FillInEmptyInitForField()
572 unsigned NumInits = ILE->getNumInits(); in FillInEmptyInitializations() local
573 unsigned NumElements = NumInits; in FillInEmptyInitializations()
596 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations()
608 } else if (Init < NumInits) { in FillInEmptyInitializations()
2415 unsigned NumInits = 0; in getStructuredSubobjectInit() local
2418 NumInits = IList->getNumInits(); in getStructuredSubobjectInit()
[all …]
DSemaExprCXX.cpp1286 unsigned NumInits = Initializer ? 1 : 0; in BuildCXXNew() local
1290 NumInits = List->getNumExprs(); in BuildCXXNew()
1295 if (initStyle == CXXNewExpr::NoInit || NumInits == 0) in BuildCXXNew()
1299 (NumInits == 1 && isa<InitListExpr>(Inits[0]))) in BuildCXXNew()
1303 if (NumInits > 1) { in BuildCXXNew()
1564 Inits[NumInits - 1]->getLocEnd()); in BuildCXXNew()
1583 llvm::makeArrayRef(Inits, NumInits))) { in BuildCXXNew()
1603 InitializationSequence InitSeq(*this, Entity, Kind, MultiExprArg(Inits, NumInits)); in BuildCXXNew()
1605 MultiExprArg(Inits, NumInits)); in BuildCXXNew()
DSemaOverload.cpp4671 unsigned NumInits = From->getNumInits(); in TryListConversion() local
4672 if (NumInits == 1 && !isa<InitListExpr>(From->getInit(0))) in TryListConversion()
4679 else if (NumInits == 0) { in TryListConversion()
/external/clang/lib/AST/
DExpr.cpp1904 void InitListExpr::reserveInits(const ASTContext &C, unsigned NumInits) { in reserveInits() argument
1905 if (NumInits > InitExprs.size()) in reserveInits()
1906 InitExprs.reserve(C, NumInits); in reserveInits()
1909 void InitListExpr::resizeInits(const ASTContext &C, unsigned NumInits) { in resizeInits() argument
1910 InitExprs.resize(C, NumInits, nullptr); in resizeInits()
DExprConstant.cpp5605 unsigned NumInits = E->getNumInits(); in VisitInitListExpr() local
5618 if (CountInits < NumInits in VisitInitListExpr()
5629 if (CountInits < NumInits) { in VisitInitListExpr()
5638 if (CountInits < NumInits) { in VisitInitListExpr()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp727 unsigned NumInits = Record[Idx++]; in VisitInitListExpr() local
728 E->reserveInits(Reader.getContext(), NumInits); in VisitInitListExpr()
730 for (unsigned I = 0; I != NumInits; ++I) { in VisitInitListExpr()
735 for (unsigned I = 0; I != NumInits; ++I) in VisitInitListExpr()
/external/clang/include/clang/AST/
DExpr.h3816 void reserveInits(const ASTContext &C, unsigned NumInits);
3824 void resizeInits(const ASTContext &Context, unsigned NumInits);