/external/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 92 TEST(CXXNewExpr, ArrayRange) { in TEST() argument 93 RangeVerifier<CXXNewExpr> Verifier; in TEST() 98 TEST(CXXNewExpr, ParenRange) { in TEST() argument 99 RangeVerifier<CXXNewExpr> Verifier; in TEST() 221 TEST(CXXNewExpr, TypeParenRange) { in TEST() argument 222 RangeVerifier<CXXNewExpr> Verifier; in TEST()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypePropagation.cpp | 31 check::PostStmt<CXXNewExpr> > { 42 void checkPostStmt(const CXXNewExpr *NewE, CheckerContext &C) const; 195 void DynamicTypePropagation::checkPostStmt(const CXXNewExpr *NewE, in checkPostStmt()
|
D | MallocChecker.cpp | 163 check::PostStmt<CXXNewExpr>, 201 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const; 428 return (Stmt && (isa<CallExpr>(Stmt) || isa<CXXNewExpr>(Stmt)) && in isAllocated() 862 else if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in ProcessZeroAllocation() 920 static bool treatUnusedNewEscaped(const CXXNewExpr *NE) { in treatUnusedNewEscaped() 947 void MallocChecker::checkPostStmt(const CXXNewExpr *NE, in checkPostStmt() 951 for (CXXNewExpr::const_arg_iterator I = NE->placement_arg_begin(), in checkPostStmt() 1220 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(S)) in getAllocationFamily() 1255 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in printAllocDeallocName()
|
/external/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 179 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize() 193 const CXXNewExpr *expr, in InitializeArrayCookie() 210 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
|
D | CGCXXABI.h | 78 virtual bool requiresArrayCookie(const CXXNewExpr *E); 420 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); 434 const CXXNewExpr *expr,
|
D | CGExprCXX.cpp | 489 const CXXNewExpr *E) { in CalculateCookiePadding() 502 const CXXNewExpr *e, in EmitCXXNewAllocSize() 788 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() 1020 static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, in EmitNewInitializer() 1201 const CXXNewExpr *E, in EnterNewDeleteCleanup() 1238 llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { in EmitCXXNewExpr()
|
D | ItaniumCXXABI.cpp | 245 const CXXNewExpr *expr, 325 const CXXNewExpr *expr, 1566 const CXXNewExpr *expr, in InitializeArrayCookie() 1655 const CXXNewExpr *expr, in InitializeArrayCookie()
|
D | MicrosoftCXXABI.cpp | 314 bool requiresArrayCookie(const CXXNewExpr *expr) override; 319 const CXXNewExpr *expr, 1890 bool MicrosoftCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie() 1916 const CXXNewExpr *expr, in InitializeArrayCookie()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 35 class CXXNewExpr; variable 203 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred); 438 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, 442 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
|
D | CallEvent.h | 744 CXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef St, in CXXAllocatorCall() 752 virtual const CXXNewExpr *getOriginExpr() const { in getOriginExpr() 753 return cast<CXXNewExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr() 979 getCXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef State, in getCXXAllocatorCall()
|
/external/clang/include/clang/Analysis/ |
D | CFG.h | 49 class CXXNewExpr; variable 153 explicit CFGNewAllocator(const CXXNewExpr *S) in CFGNewAllocator() 157 const CXXNewExpr *getAllocatorExpr() const { in getAllocatorExpr() 158 return static_cast<CXXNewExpr *>(Data1.getPointer()); in getAllocatorExpr() 665 void appendNewAllocator(CXXNewExpr *NE, in appendNewAllocator()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCXX.cpp | 344 void ExprEngine::VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, in VisitCXXNewAllocatorCall() 370 void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred, in VisitCXXNewExpr()
|
D | CallEvent.cpp | 240 || isa<CXXNewExpr>(S); in isCallStmt() 947 return getCXXAllocatorCall(cast<CXXNewExpr>(CallSite), State, CallerCtx); in getCaller()
|
D | ExprEngineCallAndReturn.cpp | 623 if (isa<CXXNewExpr>(Parent)) in mayInlineCallKind()
|
/external/clang/lib/Sema/ |
D | SemaFixItUtils.cpp | 73 isa<CXXNewExpr>(Expr) || in tryToFixConversion()
|
D | SemaExprCXX.cpp | 1238 static bool isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style, in isLegalArrayNewInitializer() 1249 else if (Style == CXXNewExpr::ListInit) { in isLegalArrayNewInitializer() 1272 CXXNewExpr::InitializationStyle initStyle; in BuildCXXNew() 1275 initStyle = CXXNewExpr::CallInit; in BuildCXXNew() 1277 initStyle = CXXNewExpr::ListInit; in BuildCXXNew() 1282 initStyle = CXXNewExpr::NoInit; in BuildCXXNew() 1288 assert(initStyle == CXXNewExpr::CallInit && "paren init for non-call init"); in BuildCXXNew() 1295 if (initStyle == CXXNewExpr::NoInit || NumInits == 0) in BuildCXXNew() 1298 if (initStyle == CXXNewExpr::ListInit || in BuildCXXNew() 1335 if (initStyle == CXXNewExpr::ListInit && in BuildCXXNew() [all …]
|
D | SemaExceptionSpec.cpp | 986 CT = canCalleeThrow(*this, E, cast<CXXNewExpr>(E)->getOperatorNew()); in canThrow()
|
/external/clang/lib/AST/ |
D | ExprCXX.cpp | 136 CXXNewExpr::CXXNewExpr(const ASTContext &C, bool globalNew, in CXXNewExpr() function in CXXNewExpr 200 void CXXNewExpr::AllocateArgsArray(const ASTContext &C, bool isArray, in AllocateArgsArray() 210 bool CXXNewExpr::shouldNullCheckAllocation(const ASTContext &Ctx) const { in shouldNullCheckAllocation()
|
D | StmtPrinter.cpp | 1828 void StmtPrinter::VisitCXXNewExpr(CXXNewExpr *E) { in VisitCXXNewExpr() 1857 CXXNewExpr::InitializationStyle InitStyle = E->getInitializationStyle(); in VisitCXXNewExpr() 1859 if (InitStyle == CXXNewExpr::CallInit) in VisitCXXNewExpr() 1862 if (InitStyle == CXXNewExpr::CallInit) in VisitCXXNewExpr()
|
D | ItaniumMangle.cpp | 2816 const CXXNewExpr *New = cast<CXXNewExpr>(E); in mangleExpression() 2819 for (CXXNewExpr::const_arg_iterator I = New->placement_arg_begin(), in mangleExpression() 2825 if (New->getInitializationStyle() == CXXNewExpr::ListInit) in mangleExpression() 2839 } else if (New->getInitializationStyle() == CXXNewExpr::ListInit && in mangleExpression()
|
D | ASTDumper.cpp | 511 void VisitCXXNewExpr(const CXXNewExpr *Node); 1922 void ASTDumper::VisitCXXNewExpr(const CXXNewExpr *Node) { in VisitCXXNewExpr()
|
/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 114 def CXXNewExpr : DStmt<Expr>;
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 372 CFGBlock *VisitCXXNewExpr(CXXNewExpr *DE, AddStmtChoice asc); 534 void appendNewAllocator(CFGBlock *B, CXXNewExpr *NE) { in appendNewAllocator() 1449 return VisitCXXNewExpr(cast<CXXNewExpr>(S), asc); in Visit() 3454 CFGBlock *CFGBuilder::VisitCXXNewExpr(CXXNewExpr *NE, in VisitCXXNewExpr() 3466 for (CXXNewExpr::arg_iterator I = NE->placement_arg_begin(), in VisitCXXNewExpr() 4192 if (const CXXNewExpr *AllocExpr = NE->getAllocatorExpr()) in print_elem()
|
/external/v8/tools/gcmole/ |
D | gcmole.cc | 551 VISIT(CXXNewExpr); in VisitExpr() 701 DECL_VISIT_EXPR(CXXNewExpr) { return VisitExpr(expr->getInitializer(), env); } in DECL_VISIT_EXPR() argument
|
/external/clang/include/clang/AST/ |
D | ExprCXX.h | 1620 class CXXNewExpr : public Expr { 1666 CXXNewExpr(const ASTContext &C, bool globalNew, FunctionDecl *operatorNew, 1673 explicit CXXNewExpr(EmptyShell Shell) in CXXNewExpr() function 1729 return const_cast<CXXNewExpr*>(this)->getPlacementArg(i); in getPlacementArg()
|