[clang] Adding optin.taint.TaintedDiv checker (PR #106389)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 02:37:36 PDT 2024


================
@@ -223,6 +223,11 @@ class CheckerManager {
     return static_cast<CHECKER *>(CheckerTags[tag]);
   }
 
+  template <typename CHECKER> bool isRegisteredChecker() {
+    CheckerTag tag = getTag<CHECKER>();
+    return (CheckerTags.count(tag) != 0);
+  }
----------------
steakhal wrote:

```suggestion
  template <typename CHECKER> bool isRegisteredChecker() {
    return CheckerTags.contains(getTag<CHECKER>());
  }
```

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


More information about the cfe-commits mailing list