[PATCH] D114105: [clang-tidy] Ignore narrowing conversions in case of bitfields

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 18 09:53:32 PST 2021


steakhal added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-narrowing-conversions-bitfields.cpp:62
+void test(NoBitfield x) {
+  // no-warning in this function, except for operator+.
+  static_assert(is_same_v<decltype(x.id << 1), unsigned>);
----------------
Outdated comment; I'll skim through and make sure these reflect the current status.


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

https://reviews.llvm.org/D114105



More information about the cfe-commits mailing list