[clang] [analyzer] Add std::variant checker (PR #66481)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 19 09:56:09 PDT 2023


================
@@ -318,6 +318,10 @@ def C11LockChecker : Checker<"C11Lock">,
   Dependencies<[PthreadLockBase]>,
   Documentation<HasDocumentation>;
 
+def StdVariantChecker : Checker<"StdVariant">,
+  HelpText<"Check for bad type access for std::variant.">,
+  Documentation<NotDocumented>;
+
----------------
steakhal wrote:

This needs to be documented.
```suggestion
def StdVariantChecker : Checker<"StdVariant">,
  HelpText<"Check for bad type access for std::variant.">,
  Documentation<Documented>;

```

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


More information about the cfe-commits mailing list