[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 24 06:54:47 PDT 2025
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/135831 at github.com>
================
@@ -110,6 +110,19 @@ Changes in existing checks
<clang-tidy/checks/bugprone/signed-char-misuse>` check by fixing
false positives on C23 enums with the fixed underlying type of signed char.
+- Improved :doc:`bugprone-tagged-union-member-count
+ <clang-tidy/checks/bugprone/tagged-union-member-count>` by fixing a false
+ positive when enums or unions from system header files or the ``std``
+ namespace are treated as the tag or the data part of a user-defined
+ tagged union respectively.
+
+- Improved :doc:`bugprone-unchecked-optional-access
----------------
vbvictor wrote:
This one I guess is a rebase artifact, need to be deleted
https://github.com/llvm/llvm-project/pull/135831
More information about the cfe-commits
mailing list