This is an archive of the discontinued LLVM Phabricator instance.

Combined patch for new warning work
Needs ReviewPublic

Authored by rtrieu on Aug 9 2019, 7:01 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Combined patch that contains:

https://reviews.llvm.org/D66043 - New precedence warning for mixing bitwise and/or with conditional operator
https://reviews.llvm.org/D66044 - -Wtautological-overlap-compare to work on negative numbers
https://reviews.llvm.org/D66045 - Better detection of same value operands for tautological warnings
https://reviews.llvm.org/D66046 - New warning -Wtautological-bitwise-compare to check for non-zero value bitwise-or in bool context

These are improvements to -Wparentheses, -Wtautological-compare, and -Wtautological-overlap-compare with new warning -Wtautological-bitwise-compare.

Diff Detail

Event Timeline

rtrieu created this revision.Aug 9 2019, 7:01 PM
rtrieu updated this revision to Diff 214974.Aug 13 2019, 4:36 PM

Better handling of arrays in self compares.