[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>


================
@@ -0,0 +1,68 @@
+// RUN: %check_clang_tidy -std=c++98-or-later %s bugprone-tagged-union-member-count %t \
+// RUN:   -config='{CheckOptions: { \
+// RUN:       bugprone-tagged-union-member-count.StrictModeIsEnabled: 1, \
+// RUN:       bugprone-tagged-union-member-count.CountingEnumHeuristicIsEnabled: 0, \
----------------
5chmidti wrote:

Please use `true` and `false` for any boolean flags (for all the other tests as well)

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


More information about the cfe-commits mailing list