[PATCH] D85287: Extend -Wtautological-bitwise-compare "bitwise or with non-zero value" warnings

Jordan Rose via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 12:25:09 PDT 2020


jordan_rose added a comment.

Nothing seems too mysterious here, but why limit to `constexpr` instead of anything where Clang can see a constant value, which would make it work in C as well? (If you're allowing `constexpr`, you're already allowing arbitrary work.)


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

https://reviews.llvm.org/D85287



More information about the cfe-commits mailing list