[clang] [clang][analyzer]Add TaintPropagation:EnableDefaultConfig config parameter (PR #176185)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 15 08:33:39 PST 2026


================
@@ -801,14 +801,18 @@ void GenericTaintChecker::initTaintRules(CheckerContext &C) const {
     GlobalCRules.push_back(
         {{CDM::CLibrary, {"getenv"}}, TR::Source({{ReturnValueIndex}})});
   }
+  CheckerManager *Mgr = C.getAnalysisManager().getCheckerManager();
+  assert(Mgr);
----------------
NagyDonat wrote:

```suggestion
```

I don't think that this is necessary, the checker manager should be always available -- and you immediately use `Mgr->` on the next line anyway.

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


More information about the cfe-commits mailing list