[all-commits] [llvm/llvm-project] 023c4d: [analyzer][AnalysisOrderChecker] Display the CallE...

Kristóf Umann via All-commits all-commits at lists.llvm.org
Thu Apr 9 07:41:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 023c4d400ef5acf3a7339dc8452ce552b15a9ae4
      https://github.com/llvm/llvm-project/commit/023c4d400ef5acf3a7339dc8452ce552b15a9ae4
  Author: Kirstóf Umann <dkszelethus at gmail.com>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
    M clang/lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
    M clang/lib/StaticAnalyzer/Core/CallEvent.cpp
    M clang/test/Analysis/Inputs/system-header-simulator-cxx.h
    M clang/test/Analysis/analyzer-config.c
    A clang/test/Analysis/cxx-dynamic-memory-analysis-order.cpp
    M clang/test/Analysis/diagnostics/explicit-suppression.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list