[analyzer][AnalysisOrderChecker] Display the CallEvent type in preCall/postCall
authorKirstóf Umann <dkszelethus@gmail.com>
Sun, 1 Mar 2020 16:49:44 +0000 (17:49 +0100)
committerKirstóf Umann <dkszelethus@gmail.com>
Thu, 9 Apr 2020 14:41:07 +0000 (16:41 +0200)
commit023c4d400ef5acf3a7339dc8452ce552b15a9ae4
tree39de86f993f12b6bddb1f01d209ddec2a247c203
parent56c3b2b091bf94ed5c3d614f3d10e8e973a72d17
[analyzer][AnalysisOrderChecker] Display the CallEvent type in preCall/postCall

Exactly what it says on the tin! The included testfile demonstrates why this is
important -- for C++ dynamic memory operators, we don't always recognize custom,
or even standard-specified new/delete operators as CXXAllocatorCall or
CXXDeallocatorCall.

Differential Revision: https://reviews.llvm.org/D77391
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
clang/lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
clang/lib/StaticAnalyzer/Core/CallEvent.cpp
clang/test/Analysis/Inputs/system-header-simulator-cxx.h
clang/test/Analysis/analyzer-config.c
clang/test/Analysis/cxx-dynamic-memory-analysis-order.cpp [new file with mode: 0644]
clang/test/Analysis/diagnostics/explicit-suppression.cpp