[clang] [analyzer] Conversion to CheckerFamily: MallocChecker (PR #147080)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 08:08:56 PDT 2025
================
@@ -3187,7 +3131,7 @@ void MallocChecker::checkPreCall(const CallEvent &Call,
if (!FD)
return;
- if (ChecksEnabled[CK_MallocChecker] && isFreeingCall(Call))
+ if (MallocChecker.isEnabled() && isFreeingCall(Call))
----------------
NagyDonat wrote:
`MallocChecker.isEnabled() &&` seems to be an ad-hoc unjustified check, we should probably remove it in a follow-up commit.
https://github.com/llvm/llvm-project/pull/147080
More information about the cfe-commits
mailing list