[clang] [analyzer] Conversion to CheckerFamily: MallocChecker (PR #147080)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 7 07:41:20 PDT 2025


================
@@ -2812,20 +2782,11 @@ void MallocChecker::HandleFunctionPtrFree(CheckerContext &C, SVal ArgVal,
                                           SourceRange Range,
                                           const Expr *FreeExpr,
                                           AllocationFamily Family) const {
-  if (!ChecksEnabled[CK_MallocChecker]) {
----------------
NagyDonat wrote:

This is a functional change -- calling `delete` on a function pointer will generate a bug report even if `MallocChecker` is not enabled.

https://github.com/llvm/llvm-project/pull/147080


More information about the cfe-commits mailing list