[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 23 11:50:21 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>
================
@@ -9,6 +9,8 @@ different from the number of data members inside the union.
A struct or a class is considered to be a tagged union if it has
exactly one union data member and exactly one enum data member and
any number of other data members that are neither unions or enums.
+Furthermore, the types of the union and the enum members must
+not come from a system header files or the ``std`` namespace
----------------
5chmidti wrote:
Given the block below, this might be redundant. (Also, wording)
https://github.com/llvm/llvm-project/pull/135831
More information about the cfe-commits
mailing list