[PATCH] D75430: [analyzer][NFC] Introduce CXXDeallocatorCall, deploy it in MallocChecker

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 06:57:40 PDT 2020


Szelethus updated this revision to Diff 254780.
Szelethus marked 2 inline comments as done.
Szelethus added a comment.
Herald added a subscriber: mgorny.

- Add `PostStmt<CXXDeleteExpr>`
- Add PostCall for `CXXDeallocatorCall`
- Add a unittest, which is kind of pointless as-is, but I realized only later that most of the delete operators aren't recognized as `CXXDeleteExpr`
- Add a bunch of `TODO`s about incorrect `CallEvent` types.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75430/new/

https://reviews.llvm.org/D75430

Files:
  clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
  clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp
  clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
  clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  clang/test/Analysis/cxx-dynamic-memory-analysis-order.cpp
  clang/unittests/StaticAnalyzer/CMakeLists.txt
  clang/unittests/StaticAnalyzer/CallEventTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75430.254780.patch
Type: text/x-patch
Size: 15224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200403/0110efa4/attachment-0001.bin>


More information about the cfe-commits mailing list