/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckPlacementNew.cpp | 23 class PlacementNewChecker : public Checker<check::PreStmt<CXXNewExpr>> { 25 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const; 28 bool checkPlaceCapacityIsSufficient(const CXXNewExpr *NE, 31 bool checkPlaceIsAlignedProperly(const CXXNewExpr *NE, 36 SVal getExtentSizeOfNewTarget(const CXXNewExpr *NE, CheckerContext &C, 40 SVal getExtentSizeOfPlace(const CXXNewExpr *NE, CheckerContext &C) const; 64 SVal PlacementNewChecker::getExtentSizeOfPlace(const CXXNewExpr *NE, in getExtentSizeOfPlace() 70 SVal PlacementNewChecker::getExtentSizeOfNewTarget(const CXXNewExpr *NE, in getExtentSizeOfNewTarget() 103 const CXXNewExpr *NE, CheckerContext &C) const { in checkPlaceCapacityIsSufficient() 274 bool PlacementNewChecker::checkPlaceIsAlignedProperly(const CXXNewExpr *NE, in checkPlaceIsAlignedProperly() [all …]
|
H A D | AnalysisOrderChecker.cpp | 34 check::PostStmt<ArraySubscriptExpr>, check::PreStmt<CXXNewExpr>, 35 check::PostStmt<CXXNewExpr>, check::PreStmt<CXXDeleteExpr>, 85 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPreStmt() 90 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPostStmt()
|
H A D | MallocChecker.cpp | 888 return (isa_and_nonnull<CallExpr, CXXNewExpr>(Stmt) && in isAllocated() 1485 } else if (const CXXNewExpr *NE = in ProcessZeroAllocCheck() 1486 dyn_cast<CXXNewExpr>(Call.getOriginExpr())) { in ProcessZeroAllocCheck() 1549 static bool hasNonTrivialConstructorCall(const CXXNewExpr *NE) { in hasNonTrivialConstructorCall() 1583 const CXXNewExpr *NE = Call.getOriginExpr(); in processNewAllocation() 1902 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in printMemFnName()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | AnyCall.h | 82 AnyCall(const CXXNewExpr *NE) in AnyCall() 118 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) { in forExpr()
|
H A D | ConstructionContext.h | 93 ConstructionContextItem(const CXXNewExpr *NE) in ConstructionContextItem() 464 const CXXNewExpr *NE; 468 explicit NewAllocatedObjectConstructionContext(const CXXNewExpr *NE) in NewAllocatedObjectConstructionContext() 475 const CXXNewExpr *getCXXNewExpr() const { return NE; } in getCXXNewExpr()
|
H A D | CFG.h | 47 class CXXNewExpr; variable 249 explicit CFGNewAllocator(const CXXNewExpr *S) in CFGNewAllocator() 253 const CXXNewExpr *getAllocatorExpr() const { in getAllocatorExpr() 254 return static_cast<CXXNewExpr *>(Data1.getPointer()); in getAllocatorExpr() 1146 void appendNewAllocator(CXXNewExpr *NE, in appendNewAllocator()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCXXABI.cpp | 215 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize() 229 const CXXNewExpr *expr, in InitializeArrayCookie() 246 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
|
H A D | CGCXXABI.h | 96 virtual bool requiresArrayCookie(const CXXNewExpr *E); 543 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); 557 const CXXNewExpr *expr,
|
H A D | CGExprCXX.cpp | 693 const CXXNewExpr *E) { in CalculateCookiePadding() 706 const CXXNewExpr *e, in EmitCXXNewAllocSize() 996 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() 1316 static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, in EmitNewInitializer() 1512 const CXXNewExpr *E, in EnterNewDeleteCleanup() 1574 llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { in EmitCXXNewExpr()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprCXX.cpp | 229 CXXNewExpr::CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, in CXXNewExpr() function in CXXNewExpr 284 CXXNewExpr::CXXNewExpr(EmptyShell Empty, bool IsArray, in CXXNewExpr() function in CXXNewExpr 292 CXXNewExpr *CXXNewExpr::Create( in Create() 307 alignof(CXXNewExpr)); in Create() 309 CXXNewExpr(IsGlobalNew, OperatorNew, OperatorDelete, ShouldPassAlignment, in Create() 315 CXXNewExpr *CXXNewExpr::CreateEmpty(const ASTContext &Ctx, bool IsArray, in CreateEmpty() 321 alignof(CXXNewExpr)); in CreateEmpty() 323 CXXNewExpr(EmptyShell(), IsArray, NumPlacementArgs, IsParenTypeId); in CreateEmpty() 326 bool CXXNewExpr::shouldNullCheckAllocation() const { in shouldNullCheckAllocation()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ComputeDependence.h | 70 class CXXNewExpr; variable 158 ExprDependence computeDependence(CXXNewExpr *E);
|
H A D | ExprCXX.h | 2238 class CXXNewExpr final 2240 private llvm::TrailingObjects<CXXNewExpr, Stmt *, SourceRange> { 2290 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, 2299 CXXNewExpr(EmptyShell Empty, bool IsArray, unsigned NumPlacementArgs, 2304 static CXXNewExpr * 2314 static CXXNewExpr *CreateEmpty(const ASTContext &Ctx, bool IsArray, 2392 return const_cast<CXXNewExpr *>(this)->getPlacementArg(I); in getPlacementArg() 2491 return const_child_range(const_cast<CXXNewExpr *>(this)->children()); in children()
|
H A D | TextNodeDumper.h | 298 void VisitCXXNewExpr(const CXXNewExpr *Node);
|
H A D | JSONNodeDumper.h | 292 void VisitCXXNewExpr(const CXXNewExpr *NE);
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ExprEngine.h | 54 class CXXNewExpr; variable 302 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred); 567 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, 571 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
|
H A D | CallEvent.h | 1116 CXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef St, in CXXAllocatorCall() 1127 const CXXNewExpr *getOriginExpr() const override { in getOriginExpr() 1128 return cast<CXXNewExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr() 1458 getCXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef State, in getCXXAllocatorCall()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCallAndReturn.cpp | 327 if (const auto *CNE = dyn_cast<CXXNewExpr>(CE)) { in processCallExit() 399 if (llvm::isa_and_nonnull<CXXNewExpr>(CE)) { in processCallExit() 420 !(isa<CXXNewExpr>(CE) && // Called when visiting CXXNewExpr. in processCallExit() 634 if (!E || isa<CXXNewExpr>(E)) in finishArgumentConstruction() 796 const auto *CNE = dyn_cast<CXXNewExpr>(E); in bindReturnValue()
|
H A D | ExprEngineCXX.cpp | 923 void ExprEngine::VisitCXXNewAllocatorCall(const CXXNewExpr *CNE, in VisitCXXNewAllocatorCall() 995 void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred, in VisitCXXNewExpr()
|
H A D | CallEvent.cpp | 348 return isa<CallExpr, ObjCMessageExpr, CXXConstructExpr, CXXNewExpr>(S); in isCallStmt() 1490 } else if (const auto *NE = dyn_cast<CXXNewExpr>(S)) { in getCall()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | UsedDeclVisitor.h | 59 void VisitCXXNewExpr(CXXNewExpr *E) { in VisitCXXNewExpr()
|
H A D | SemaFixItUtils.cpp | 72 isa<CXXNewExpr>(Expr) || in tryToFixConversion()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ConstructionContext.cpp | 184 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt()); in createFromLayers()
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 1956 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXNewExpr> cxxNewExpr; 4078 CXXNewExpr, CXXTemporaryObjectExpr, CXXUnresolvedConstructExpr, in AST_POLYMORPHIC_MATCHER_P() argument 8462 AST_MATCHER(CXXNewExpr, isArray) { in AST_MATCHER() argument 8474 AST_MATCHER_P2(CXXNewExpr, hasPlacementArg, unsigned, Index, in AST_MATCHER_P2() argument 8488 AST_MATCHER_P(CXXNewExpr, hasAnyPlacementArg, internal::Matcher<Expr>, in AST_MATCHER_P() argument 8503 AST_MATCHER_P(CXXNewExpr, hasArraySize, internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P() argument
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | PtrTypesSemantics.cpp | 482 bool VisitCXXNewExpr(const CXXNewExpr *NE) { return VisitChildren(NE); } in VisitCXXNewExpr()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | StmtNodes.td | 137 def CXXNewExpr : StmtNode<Expr>;
|