[PATCH] D66046: Add new tautological compare warning for bitwise-or with a non-zero constant
JF Bastien via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 10 08:55:12 PDT 2019
jfb added inline comments.
================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8161
+ "bitwise or with non-zero value always evaluates to true">,
+ InGroup<TautologicalBitwiseCompare>, DefaultIgnore;
def warn_tautological_overlap_comparison : Warning<
----------------
Why default ignore?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66046/new/
https://reviews.llvm.org/D66046
More information about the cfe-commits
mailing list