[PATCH] D53543: [analyzer] MallocChecker: pr39348: Realize that sized delete isn't a custom delete.

Henry Wong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 23 19:10:52 PDT 2018


MTC added inline comments.


================
Comment at: test/Analysis/NewDelete-sized-deallocation.cpp:1
+// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core,cplusplus -verify -analyzer-output=text %s
+// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core,cplusplus -verify -analyzer-output=text %s -fsized-deallocation
----------------
george.karpenkov wrote:
> MTC wrote:
> > I believe `sized deallocation` is the feature since C++14, see https://en.cppreference.com/w/cpp/memory/new/operator_delete. 
> specifying 17 is also fine
Yea, that's true.  


https://reviews.llvm.org/D53543





More information about the cfe-commits mailing list