[clang-tools-extra] [clang-tidy] Fix bugprone-misplaced-widening-cast false positive on bitfield assignments (PR #197554)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 23:57:20 PDT 2026


================
@@ -0,0 +1,235 @@
+// RUN: %check_clang_tidy %s bugprone-misplaced-widening-cast %t -- \
+// RUN:     -config="{CheckOptions: {bugprone-misplaced-widening-cast.CheckImplicitCasts: true}}" \
----------------
vbvictor wrote:

`CheckImplicitCasts` is orthogonal to your change, please make only one test file with `CheckImplicitCasts: true` and test all casts there (including explicit and implicit).

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


More information about the cfe-commits mailing list