/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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 …]
|
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()
|
D | PointerArithChecker.cpp | 47 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/ |
D | MakeSmartPtrCheck.h | 57 const CXXNewExpr *New); 59 const CXXMemberCallExpr *Member, const CXXNewExpr *New); 62 bool replaceNew(DiagnosticBuilder &Diag, const CXXNewExpr *New,
|
D | MakeSmartPtrCheck.cpp | 27 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/ |
D | SourceLocationTest.cpp | 92 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/ |
D | PointerArithChecker.cpp | 49 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/ |
D | ConstructionContext.h | 90 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()
|
D | AnyCall.h | 81 AnyCall(const CXXNewExpr *NE) in AnyCall() 117 } else if (const auto *CXNE = dyn_cast<CXXNewExpr>(E)) { in forExpr()
|
/external/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 193 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize() 207 const CXXNewExpr *expr, in InitializeArrayCookie() 224 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
|
D | CGCXXABI.h | 82 virtual bool requiresArrayCookie(const CXXNewExpr *E); 464 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); 478 const CXXNewExpr *expr,
|
/external/llvm-project/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 147 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/ |
D | ExprCXX.cpp | 181 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/ |
D | CGCXXABI.cpp | 164 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { in GetArrayCookieSize() 178 const CXXNewExpr *expr, in InitializeArrayCookie() 195 bool CGCXXABI::requiresArrayCookie(const CXXNewExpr *expr) { in requiresArrayCookie()
|
D | CGCXXABI.h | 84 virtual bool requiresArrayCookie(const CXXNewExpr *E); 510 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); 524 const CXXNewExpr *expr,
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 35 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/ |
D | DefaultOperatorNewAlignmentCheck.cpp | 28 const auto *NewExpr = Result.Nodes.getNodeAs<CXXNewExpr>("new"); in check()
|
/external/llvm-project/clang/include/clang/AST/ |
D | ComputeDependence.h | 68 class CXXNewExpr; variable 150 ExprDependence computeDependence(CXXNewExpr *E);
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 53 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/ |
D | MisplacedPointerArithmeticInAllocCheck.cpp | 75 const auto *New = cast<CXXNewExpr>(AllocExpr); in check()
|
D | MisplacedOperatorInStrlenInAllocCheck.cpp | 79 Alloc = Result.Nodes.getNodeAs<CXXNewExpr>("Alloc"); in check()
|
D | AssertSideEffectCheck.cpp | 66 return isa<CXXNewExpr>(E) || isa<CXXDeleteExpr>(E) || isa<CXXThrowExpr>(E); in AST_MATCHER_P()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCallAndReturn.cpp | 259 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/ |
D | CFG.h | 49 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/ |
D | UsedDeclVisitor.h | 59 void VisitCXXNewExpr(CXXNewExpr *E) { in VisitCXXNewExpr()
|