[all-commits] [llvm/llvm-project] cd193f: [analyzer] Remove redundant bug type DoubleDelete ...

Donát Nagy via All-commits all-commits at lists.llvm.org
Wed Jul 9 08:04:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd193f4c057ee5005197219df1c646b939a85711
      https://github.com/llvm/llvm-project/commit/cd193f4c057ee5005197219df1c646b939a85711
  Author: Donát Nagy <donat.nagy at ericsson.com>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
    M clang/test/Analysis/NewDelete-checker-test.cpp

  Log Message:
  -----------
  [analyzer] Remove redundant bug type DoubleDelete (#147542)

This commit removes the DoubleDelete bug type from `MallocChecker.cpp`
because it's completely redundant with the `DoubleFree` bug (which is
already used for all allocator families, including new/delete).

This simplifies the code of the checker and prevents the potential
confusion caused by two semantically equivalent and very similar, but
not identical bug report messages.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list