[clang] [analyzer] Conversion to CheckerFamily: MallocChecker (PR #147080)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 07:47:58 PDT 2025
================
@@ -3028,24 +2986,10 @@ void MallocChecker::HandleLeak(SymbolRef Sym, ExplodedNode *N,
if (Family.Kind == AF_Alloca)
return;
- std::optional<MallocChecker::CheckKind> CheckKind =
- getCheckIfTracked(Family, true);
-
- if (!CheckKind)
+ const Leak *Frontend = getRelevantFrontendAs<Leak>(Family);
+ if (handleNullOrDisabled(Frontend, C))
----------------
NagyDonat wrote:
```suggestion
if (!Frontend || !Frontend.isEnabled())
```
https://github.com/llvm/llvm-project/pull/147080
More information about the cfe-commits
mailing list