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/CodeGen/
DCGCXXABI.cpp193 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize()
207 const CXXNewExpr *expr, in InitializeArrayCookie()
224 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
DCGCXXABI.h82 virtual bool requiresArrayCookie(const CXXNewExpr *E);
448 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
462 const CXXNewExpr *expr,
DCGExprCXX.cpp530 const CXXNewExpr *E) { in CalculateCookiePadding()
543 const CXXNewExpr *e, in EmitCXXNewAllocSize()
827 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer()
1090 static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, in EmitNewInitializer()
1270 const CXXNewExpr *E, in EnterNewDeleteCleanup()
1308 llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { in EmitCXXNewExpr()
DItaniumCXXABI.cpp314 const CXXNewExpr *expr,
428 const CXXNewExpr *expr,
1741 const CXXNewExpr *expr, in InitializeArrayCookie()
1825 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);
442 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE,
446 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
DCallEvent.h802 CXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef St, in CXXAllocatorCall()
810 virtual const CXXNewExpr *getOriginExpr() const { in getOriginExpr()
811 return cast<CXXNewExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr()
1038 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()
664 void appendNewAllocator(CXXNewExpr *NE, in appendNewAllocator()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp163 check::PostStmt<CXXNewExpr>,
201 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
427 return (Stmt && (isa<CallExpr>(Stmt) || isa<CXXNewExpr>(Stmt)) && in isAllocated()
862 else if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in ProcessZeroAllocation()
924 static bool treatUnusedNewEscaped(const CXXNewExpr *NE) { in treatUnusedNewEscaped()
951 void MallocChecker::checkPostStmt(const CXXNewExpr *NE, in checkPostStmt()
955 for (CXXNewExpr::const_arg_iterator I = NE->placement_arg_begin(), in checkPostStmt()
1224 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(S)) in getAllocationFamily()
1259 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in printAllocDeallocName()
DDynamicTypePropagation.cpp55 check::PostStmt<CXXNewExpr>,
104 void checkPostStmt(const CXXNewExpr *NewE, CheckerContext &C) const;
294 void DynamicTypePropagation::checkPostStmt(const CXXNewExpr *NewE, in checkPostStmt()
/external/clang/lib/Sema/
DSemaExprCXX.cpp1246 static bool isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style, in isLegalArrayNewInitializer()
1257 else if (Style == CXXNewExpr::ListInit) { in isLegalArrayNewInitializer()
1280 CXXNewExpr::InitializationStyle initStyle; in BuildCXXNew()
1283 initStyle = CXXNewExpr::CallInit; in BuildCXXNew()
1285 initStyle = CXXNewExpr::ListInit; in BuildCXXNew()
1290 initStyle = CXXNewExpr::NoInit; in BuildCXXNew()
1296 assert(initStyle == CXXNewExpr::CallInit && "paren init for non-call init"); in BuildCXXNew()
1303 if (initStyle == CXXNewExpr::NoInit || NumInits == 0) in BuildCXXNew()
1306 if (initStyle == CXXNewExpr::ListInit || in BuildCXXNew()
1343 if (initStyle == CXXNewExpr::ListInit && in BuildCXXNew()
[all …]
DSemaFixItUtils.cpp73 isa<CXXNewExpr>(Expr) || in tryToFixConversion()
DSemaExceptionSpec.cpp1014 CT = canCalleeThrow(*this, E, cast<CXXNewExpr>(E)->getOperatorNew()); in canThrow()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp400 void ExprEngine::VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, in VisitCXXNewAllocatorCall()
426 void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred, in VisitCXXNewExpr()
DCallEvent.cpp258 || isa<CXXNewExpr>(S); in isCallStmt()
1005 return getCXXAllocatorCall(cast<CXXNewExpr>(CallSite), State, CallerCtx); in getCaller()
DExprEngineCallAndReturn.cpp624 if (isa<CXXNewExpr>(Parent)) in mayInlineCallKind()
/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.cpp2013 void StmtPrinter::VisitCXXNewExpr(CXXNewExpr *E) { in VisitCXXNewExpr()
2042 CXXNewExpr::InitializationStyle InitStyle = E->getInitializationStyle(); in VisitCXXNewExpr()
2044 if (InitStyle == CXXNewExpr::CallInit) in VisitCXXNewExpr()
2047 if (InitStyle == CXXNewExpr::CallInit) in VisitCXXNewExpr()
DItaniumMangle.cpp2963 const CXXNewExpr *New = cast<CXXNewExpr>(E); in mangleExpression()
2966 for (CXXNewExpr::const_arg_iterator I = New->placement_arg_begin(), in mangleExpression()
2972 if (New->getInitializationStyle() == CXXNewExpr::ListInit) in mangleExpression()
2986 } else if (New->getInitializationStyle() == CXXNewExpr::ListInit && in mangleExpression()
DASTDumper.cpp517 void VisitCXXNewExpr(const CXXNewExpr *Node);
1979 void ASTDumper::VisitCXXNewExpr(const CXXNewExpr *Node) { in VisitCXXNewExpr()
/external/clang/include/clang/Basic/
DStmtNodes.td121 def CXXNewExpr : DStmt<Expr>;
/external/clang/lib/Analysis/
DCFG.cpp443 CFGBlock *VisitCXXNewExpr(CXXNewExpr *DE, AddStmtChoice asc);
606 void appendNewAllocator(CFGBlock *B, CXXNewExpr *NE) { in appendNewAllocator()
1506 return VisitCXXNewExpr(cast<CXXNewExpr>(S), asc); in Visit()
3531 CFGBlock *CFGBuilder::VisitCXXNewExpr(CXXNewExpr *NE, in VisitCXXNewExpr()
3543 for (CXXNewExpr::arg_iterator I = NE->placement_arg_begin(), in VisitCXXNewExpr()
4270 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.h1735 class CXXNewExpr : public Expr {
1781 CXXNewExpr(const ASTContext &C, bool globalNew, FunctionDecl *operatorNew,
1788 explicit CXXNewExpr(EmptyShell Shell) in CXXNewExpr() function
1844 return const_cast<CXXNewExpr*>(this)->getPlacementArg(i); in getPlacementArg()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp917 isa<CXXNewExpr>(Expr) || in castOperatorNeedsParens()

12