Lines Matching refs:CXXNewExpr
1246 static bool isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style,
1257 else if (Style == CXXNewExpr::ListInit) {
1280 CXXNewExpr::InitializationStyle initStyle;
1283 initStyle = CXXNewExpr::CallInit;
1285 initStyle = CXXNewExpr::ListInit;
1290 initStyle = CXXNewExpr::NoInit;
1296 assert(initStyle == CXXNewExpr::CallInit && "paren init for non-call init");
1303 if (initStyle == CXXNewExpr::NoInit || NumInits == 0)
1306 if (initStyle == CXXNewExpr::ListInit ||
1343 if (initStyle == CXXNewExpr::ListInit &&
1599 = initStyle == CXXNewExpr::NoInit
1603 : initStyle == CXXNewExpr::ListInit
1657 CXXNewExpr(Context, UseGlobal, OperatorNew, OperatorDelete,
2397 llvm::SmallVector<const CXXNewExpr *, 4> NewExprs;
2406 /// \brief Returns \c CXXNewExpr from given initialization expression.
2409 const CXXNewExpr *getNewExprFromInitListOrExpr(const Expr *E);
2459 const CXXNewExpr *
2465 E = dyn_cast<const CXXNewExpr>(ILE->getInit(0)->IgnoreParenImpCasts());
2468 return dyn_cast_or_null<const CXXNewExpr>(E);
2473 const CXXNewExpr *NE = nullptr;
2506 if (const CXXNewExpr *NE = getNewExprFromInitListOrExpr(InitExpr)) {
2543 const CXXNewExpr *NE = nullptr;