[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 20 21:10:34 PDT 2024


=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= <tigbrcode at protonmail.com>,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= <tigbrcode at protonmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/89925 at github.com>


================

----------------
5chmidti wrote:

Please add testcases with a template that is not instantiated and the enum and union types are not template type parameters:
```c++
template <typename T>
struct A {
  Tags3 tag;
  Union4 val;
};
```

and tests with macros.

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


More information about the cfe-commits mailing list