[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 17:00:31 PST 2025


https://github.com/shafik commented:

Does this also warns on expressions that result in a `bool` e.g. https://godbolt.org/z/aY3cons4T

```cpp
bool a = (x < y) << 1;
```

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


More information about the cfe-commits mailing list