Home
last modified time | relevance | path

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

12345

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DCheckPlacementNew.cpp23 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 …]
DAnalysisOrderChecker.cpp34 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()
DPointerArithChecker.cpp47 check::PostStmt<CastExpr>, check::PostStmt<CXXNewExpr>,
49 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
68 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
90 AllocKind PointerArithChecker::getKindOfNewOp(const CXXNewExpr *NE, in getKindOfNewOp()
240 void PointerArithChecker::checkPostStmt(const CXXNewExpr *NE, in checkPostStmt()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DMakeSmartPtrCheck.h57 const CXXNewExpr *New);
59 const CXXMemberCallExpr *Member, const CXXNewExpr *New);
62 bool replaceNew(DiagnosticBuilder &Diag, const CXXNewExpr *New,
DMakeSmartPtrCheck.cpp27 std::string GetNewExprName(const CXXNewExpr *NewExpr, in GetNewExprName()
122 const auto *New = Result.Nodes.getNodeAs<CXXNewExpr>(NewExpression); in check()
150 const CXXNewExpr *New) { in checkConstruct()
215 const CXXNewExpr *New) { in checkReset()
261 const CXXNewExpr *New, SourceManager &SM, in replaceNew()
325 case CXXNewExpr::NoInit: { in replaceNew()
336 case CXXNewExpr::CallInit: { in replaceNew()
373 case CXXNewExpr::ListInit: { in replaceNew()
/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/
DPointerArithChecker.cpp49 check::PostStmt<CastExpr>, check::PostStmt<CXXNewExpr>,
51 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
70 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
92 AllocKind PointerArithChecker::getKindOfNewOp(const CXXNewExpr *NE, in getKindOfNewOp()
243 void PointerArithChecker::checkPostStmt(const CXXNewExpr *NE, in checkPostStmt()
/external/llvm-project/clang/include/clang/Analysis/
DConstructionContext.h90 ConstructionContextItem(const CXXNewExpr *NE) in ConstructionContextItem()
441 const CXXNewExpr *NE;
445 explicit NewAllocatedObjectConstructionContext(const CXXNewExpr *NE) in NewAllocatedObjectConstructionContext()
452 const CXXNewExpr *getCXXNewExpr() const { return NE; } in getCXXNewExpr()
DAnyCall.h81 AnyCall(const CXXNewExpr *NE) in AnyCall()
117 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) { in forExpr()
/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);
464 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
478 const CXXNewExpr *expr,
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp147 TEST(CXXNewExpr, ArrayRange) { in TEST() argument
148 RangeVerifier<CXXNewExpr> Verifier; in TEST()
153 TEST(CXXNewExpr, ParenRange) { in TEST() argument
154 RangeVerifier<CXXNewExpr> Verifier; in TEST()
366 TEST(CXXNewExpr, TypeParenRange) { in TEST() argument
367 RangeVerifier<CXXNewExpr> Verifier; in TEST()
/external/llvm-project/clang/lib/AST/
DExprCXX.cpp181 CXXNewExpr::CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, in CXXNewExpr() function in CXXNewExpr
234 CXXNewExpr::CXXNewExpr(EmptyShell Empty, bool IsArray, in CXXNewExpr() function in CXXNewExpr
242 CXXNewExpr *
243 CXXNewExpr::Create(const ASTContext &Ctx, bool IsGlobalNew, in Create()
258 alignof(CXXNewExpr)); in Create()
260 CXXNewExpr(IsGlobalNew, OperatorNew, OperatorDelete, ShouldPassAlignment, in Create()
266 CXXNewExpr *CXXNewExpr::CreateEmpty(const ASTContext &Ctx, bool IsArray, in CreateEmpty()
272 alignof(CXXNewExpr)); in CreateEmpty()
274 CXXNewExpr(EmptyShell(), IsArray, NumPlacementArgs, IsParenTypeId); in CreateEmpty()
277 bool CXXNewExpr::shouldNullCheckAllocation() const { in shouldNullCheckAllocation()
/external/llvm-project/clang/lib/CodeGen/
DCGCXXABI.cpp164 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize()
178 const CXXNewExpr *expr, in InitializeArrayCookie()
195 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
DCGCXXABI.h84 virtual bool requiresArrayCookie(const CXXNewExpr *E);
510 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
524 const CXXNewExpr *expr,
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h35 class CXXNewExpr; variable
203 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred);
453 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE,
457 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DDefaultOperatorNewAlignmentCheck.cpp28 const auto *NewExpr = Result.Nodes.getNodeAs<CXXNewExpr>("new"); in check()
/external/llvm-project/clang/include/clang/AST/
DComputeDependence.h68 class CXXNewExpr; variable
150 ExprDependence computeDependence(CXXNewExpr *E);
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h53 class CXXNewExpr; variable
307 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred);
569 void VisitCXXNewAllocatorCall(const CXXNewExpr *CNE,
573 void VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedPointerArithmeticInAllocCheck.cpp75 const auto *New = cast<CXXNewExpr>(AllocExpr); in check()
DMisplacedOperatorInStrlenInAllocCheck.cpp79 Alloc = Result.Nodes.getNodeAs<CXXNewExpr>("Alloc"); in check()
DAssertSideEffectCheck.cpp66 return isa<CXXNewExpr>(E) || isa<CXXDeleteExpr>(E) || isa<CXXThrowExpr>(E); in AST_MATCHER_P()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp259 if (const auto *CNE = dyn_cast<CXXNewExpr>(CE)) { in processCallExit()
329 if (llvm::isa_and_nonnull<CXXNewExpr>(CE)) { in processCallExit()
350 !(isa<CXXNewExpr>(CE) && // Called when visiting CXXNewExpr. in processCallExit()
529 if (!E || isa<CXXNewExpr>(E)) in finishArgumentConstruction()
693 if (const auto *CNE = dyn_cast<CXXNewExpr>(E)) in bindReturnValue()
/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/llvm-project/clang/lib/Sema/
DUsedDeclVisitor.h59 void VisitCXXNewExpr(CXXNewExpr *E) { in VisitCXXNewExpr()

12345