[PATCH] D41266: [analyzer] With c++-allocator-inlining, fix memory space for operator new pointers.
Devin Coughlin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 8 18:31:44 PST 2018
dcoughlin added inline comments.
================
Comment at: lib/StaticAnalyzer/Core/ExprEngineCXX.cpp:477
+bool ExprEngine::isStandardGlobalOperatorNewFunction(const CXXNewExpr *CNE) {
+ const FunctionDecl *FD = CNE->getOperatorNew();
+ if (FD && !isa<CXXMethodDecl>(FD) && !FD->isVariadic()) {
----------------
I realize this isn't your code, but could we use `FunctionDecl::isReplaceableGlobalAllocationFunction() here?`
https://reviews.llvm.org/D41266
More information about the cfe-commits
mailing list