[all-commits] [llvm/llvm-project] 9b5c9c: [analyzer] Dump checker name if multiple checkers ...

Balazs Benics via All-commits all-commits at lists.llvm.org
Tue Nov 2 06:42:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b5c9c469d90227251d9da9108ee7985ba415f2b
      https://github.com/llvm/llvm-project/commit/9b5c9c469d90227251d9da9108ee7985ba415f2b
  Author: Balazs Benics <balazs.benics at sigmatechnology.se>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/CallEvent.cpp
    M clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
    M clang/unittests/StaticAnalyzer/CMakeLists.txt
    A clang/unittests/StaticAnalyzer/ConflictingEvalCallsTest.cpp

  Log Message:
  -----------
  [analyzer] Dump checker name if multiple checkers evaluate the same call

Previously, if accidentally multiple checkers `eval::Call`-ed the same
`CallEvent`, in debug builds the analyzer detected this and crashed
with the message stating this. Unfortunately, the message did not state
the offending checkers violating this invariant.
This revision addresses this by printing a more descriptive message
before aborting.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D112889




More information about the All-commits mailing list