[PATCH] D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 10:29:03 PDT 2022


njames93 added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-pro-type-member-init.cpp:558
+  S1() {}
+  // CHECK-MESSAGES-NOT: warning:
+  union {
----------------
This line is redundant and likely to cause unintended test failures, same goes below.
If there was a warning on this line and no directive for it, the check script would fail due to that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127293/new/

https://reviews.llvm.org/D127293



More information about the cfe-commits mailing list