Searched refs:CXXNewExpr (Results 1 - 25 of 36) sorted by relevance

12

/external/clang/unittests/AST/
H A DSourceLocationTest.cpp92 TEST(CXXNewExpr, ArrayRange) {
93 RangeVerifier<CXXNewExpr> Verifier;
98 TEST(CXXNewExpr, ParenRange) {
99 RangeVerifier<CXXNewExpr> Verifier;
177 TEST(CXXNewExpr, TypeParenRange) {
178 RangeVerifier<CXXNewExpr> Verifier;
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp31 check::PostStmt<CXXNewExpr> > {
42 void checkPostStmt(const CXXNewExpr *NewE, CheckerContext &C) const;
195 void DynamicTypePropagation::checkPostStmt(const CXXNewExpr *NewE,
H A DMallocChecker.cpp152 check::PostStmt<CXXNewExpr>,
181 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
387 return (Stmt && (isa<CallExpr>(Stmt) || isa<CXXNewExpr>(Stmt)) &&
720 // processed by the checkPostStmt callbacks for CXXNewExpr and
756 void MallocChecker::checkPostStmt(const CXXNewExpr *NE,
760 for (CXXNewExpr::const_arg_iterator I = NE->placement_arg_begin(),
991 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(S))
1026 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(
[all...]
/external/clang/lib/CodeGen/
H A DCGCXXABI.cpp179 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) {
193 const CXXNewExpr *expr,
210 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) {
H A DCGCXXABI.h77 virtual bool requiresArrayCookie(const CXXNewExpr *E);
421 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
435 const CXXNewExpr *expr,
H A DCGExprCXX.cpp452 const CXXNewExpr *E) {
465 const CXXNewExpr *e,
752 CodeGenFunction::EmitNewArrayInitializer(const CXXNewExpr *E,
985 static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E,
1166 const CXXNewExpr *E,
1203 llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) {
1254 // CXXNewExpr::shouldNullCheckAllocation()) and we have an
H A DItaniumCXXABI.cpp224 const CXXNewExpr *expr,
297 const CXXNewExpr *expr,
1453 const CXXNewExpr *expr,
1521 const CXXNewExpr *expr,
H A DMicrosoftCXXABI.cpp285 bool requiresArrayCookie(const CXXNewExpr *expr) override;
290 const CXXNewExpr *expr,
1662 bool MicrosoftCXXABI::requiresArrayCookie(const CXXNewExpr *expr) {
1688 const CXXNewExpr *expr,
H A DCodeGenFunction.h1645 void EmitNewArrayInitializer(const CXXNewExpr *E, QualType elementType,
1652 llvm::Value *EmitCXXNewExpr(const CXXNewExpr *E);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h35 class CXXNewExpr;
203 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred);
425 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE,
429 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
H A DCallEvent.h744 CXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef St,
752 virtual const CXXNewExpr *getOriginExpr() const {
753 return cast<CXXNewExpr>(AnyFunctionCall::getOriginExpr());
979 getCXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef State,
/external/clang/include/clang/Analysis/
H A DCFG.h49 class CXXNewExpr;
153 explicit CFGNewAllocator(const CXXNewExpr *S)
157 const CXXNewExpr *getAllocatorExpr() const {
158 return static_cast<CXXNewExpr *>(Data1.getPointer());
666 void appendNewAllocator(CXXNewExpr *NE,
/external/clang/lib/Sema/
H A DSemaFixItUtils.cpp73 isa<CXXNewExpr>(Expr) ||
H A DSemaExprCXX.cpp1132 static bool isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style,
1143 else if (Style == CXXNewExpr::ListInit) {
1166 CXXNewExpr::InitializationStyle initStyle;
1169 initStyle = CXXNewExpr::CallInit;
1171 initStyle = CXXNewExpr::ListInit;
1176 initStyle = CXXNewExpr::NoInit;
1182 assert(initStyle == CXXNewExpr::CallInit && "paren init for non-call init");
1197 if (initStyle == CXXNewExpr::NoInit || NumInits == 0)
1200 if (initStyle == CXXNewExpr::ListInit ||
1237 if (initStyle == CXXNewExpr
[all...]
H A DSemaExceptionSpec.cpp945 CT = canCalleeThrow(*this, E, cast<CXXNewExpr>(E)->getOperatorNew());
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp344 void ExprEngine::VisitCXXNewAllocatorCall(const CXXNewExpr *CNE,
370 void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
374 // really part of the CXXNewExpr because they happen BEFORE the
446 // CXXNewExpr, we need to make sure that the constructed object is not
H A DCallEvent.cpp240 || isa<CXXNewExpr>(S);
947 return getCXXAllocatorCall(cast<CXXNewExpr>(CallSite), State, CallerCtx);
H A DExprEngineCallAndReturn.cpp623 if (isa<CXXNewExpr>(Parent))
H A DExprEngine.cpp556 void ExprEngine::ProcessNewAllocator(const CXXNewExpr *NE,
999 VisitCXXNewExpr(cast<CXXNewExpr>(S), Pred, PostVisit);
/external/clang/lib/AST/
H A DExprCXX.cpp138 // CXXNewExpr
139 CXXNewExpr::CXXNewExpr(const ASTContext &C, bool globalNew, function in class:CXXNewExpr
203 void CXXNewExpr::AllocateArgsArray(const ASTContext &C, bool isArray,
213 bool CXXNewExpr::shouldNullCheckAllocation(const ASTContext &Ctx) const {
H A DItaniumMangle.cpp2732 const CXXNewExpr *New = cast<CXXNewExpr>(E);
2735 for (CXXNewExpr::const_arg_iterator I = New->placement_arg_begin(),
2741 if (New->getInitializationStyle() == CXXNewExpr::ListInit)
2755 } else if (New->getInitializationStyle() == CXXNewExpr::ListInit &&
/external/clang/include/clang/AST/
H A DExprCXX.h1583 /// calls, e.g: "new CXXNewExpr(foo)".
1584 class CXXNewExpr : public Expr { class in namespace:clang
1630 CXXNewExpr(const ASTContext &C, bool globalNew, FunctionDecl *operatorNew,
1637 explicit CXXNewExpr(EmptyShell Shell) function in class:clang::CXXNewExpr
1689 return const_cast<CXXNewExpr*>(this)->getPlacementArg(i);
/external/chromium_org/v8/tools/gcmole/
H A Dgcmole.cc551 VISIT(CXXNewExpr);
701 DECL_VISIT_EXPR(CXXNewExpr) { return VisitExpr(expr->getInitializer(), env); }
/external/clang/lib/Analysis/
H A DCFG.cpp366 CFGBlock *VisitCXXNewExpr(CXXNewExpr *DE, AddStmtChoice asc);
464 void appendNewAllocator(CFGBlock *B, CXXNewExpr *NE) {
1381 return VisitCXXNewExpr(cast<CXXNewExpr>(S), asc);
3386 CFGBlock *CFGBuilder::VisitCXXNewExpr(CXXNewExpr *NE,
3398 for (CXXNewExpr::arg_iterator I = NE->placement_arg_begin(),
4112 if (const CXXNewExpr *AllocExpr = NE->getAllocatorExpr())
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h812 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXNewExpr> newExpr;

Completed in 466 milliseconds

12