[clang] [analyzer] Add documentation for std::variant checker (PR #76501)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 28 08:53:35 PST 2023
=?utf-8?q?Gábor?= Spaits
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76501 at github.com>
================
@@ -2097,6 +2097,21 @@ This checker is a part of ``core.StackAddressEscape``, but is temporarily disabl
.. _alpha-core-TestAfterDivZero:
+alpha.core.StdVariant (C++)
+"""""""""""""""""""""""""""
+Check if a value of active type is retrieved from an ``std::variant`` instance with ``std::get``.
+In case of bad variant type access(the accessed type differs from the active type)
----------------
whisperity wrote:
This diff is still undone, or was reverted / reappeared during the intermittent changes.
https://github.com/llvm/llvm-project/pull/76501
More information about the cfe-commits
mailing list