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

Stephan Bergmann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 13:38:07 PDT 2020


sberg added a comment.

My naive assumption was that this warning had initially been restricted to integer literals and enumerators to avoid false positives.  Hence my conservative approach of extending merely to constant integer expressions for now.  Maybe Richard as the original author of the warning (IIUC) can shed some light on that original restriction?


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

https://reviews.llvm.org/D85287



More information about the cfe-commits mailing list