Home
last modified time | relevance | path

Searched refs:CXXNewExpr (Results 1 – 25 of 39) sorted by relevance

12

/external/clang/unittests/AST/
DSourceLocationTest.cpp92 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/
DDynamicTypePropagation.cpp31 check::PostStmt<CXXNewExpr> > {
42 void checkPostStmt(const CXXNewExpr *NewE, CheckerContext &C) const;
195 void DynamicTypePropagation::checkPostStmt(const CXXNewExpr *NewE, in checkPostStmt()
DMallocChecker.cpp163 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/
DCGCXXABI.cpp179 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize()
193 const CXXNewExpr *expr, in InitializeArrayCookie()
210 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
DCGCXXABI.h78 virtual bool requiresArrayCookie(const CXXNewExpr *E);
420 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
434 const CXXNewExpr *expr,
DCGExprCXX.cpp489 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()
DItaniumCXXABI.cpp245 const CXXNewExpr *expr,
325 const CXXNewExpr *expr,
1566 const CXXNewExpr *expr, in InitializeArrayCookie()
1655 const CXXNewExpr *expr, in InitializeArrayCookie()
DMicrosoftCXXABI.cpp314 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/
DExprEngine.h35 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,
DCallEvent.h744 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/
DCFG.h49 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/
DExprEngineCXX.cpp344 void ExprEngine::VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, in VisitCXXNewAllocatorCall()
370 void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred, in VisitCXXNewExpr()
DCallEvent.cpp240 || isa<CXXNewExpr>(S); in isCallStmt()
947 return getCXXAllocatorCall(cast<CXXNewExpr>(CallSite), State, CallerCtx); in getCaller()
DExprEngineCallAndReturn.cpp623 if (isa<CXXNewExpr>(Parent)) in mayInlineCallKind()
/external/clang/lib/Sema/
DSemaFixItUtils.cpp73 isa<CXXNewExpr>(Expr) || in tryToFixConversion()
DSemaExprCXX.cpp1238 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 …]
DSemaExceptionSpec.cpp986 CT = canCalleeThrow(*this, E, cast<CXXNewExpr>(E)->getOperatorNew()); in canThrow()
/external/clang/lib/AST/
DExprCXX.cpp136 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()
DStmtPrinter.cpp1828 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()
DItaniumMangle.cpp2816 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()
DASTDumper.cpp511 void VisitCXXNewExpr(const CXXNewExpr *Node);
1922 void ASTDumper::VisitCXXNewExpr(const CXXNewExpr *Node) { in VisitCXXNewExpr()
/external/clang/include/clang/Basic/
DStmtNodes.td114 def CXXNewExpr : DStmt<Expr>;
/external/clang/lib/Analysis/
DCFG.cpp372 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/
Dgcmole.cc551 VISIT(CXXNewExpr); in VisitExpr()
701 DECL_VISIT_EXPR(CXXNewExpr) { return VisitExpr(expr->getInitializer(), env); } in DECL_VISIT_EXPR() argument
/external/clang/include/clang/AST/
DExprCXX.h1620 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()

12