[cfe-commits] [PATCH] Improve -Wtautological-constant-out-of-range-compare

Richard Trieu rtrieu at google.com
Mon Nov 12 09:46:15 PST 2012


Make -Wtautological-constant-out-of-range-compare checking take into account types and conversion between types.  The old version merely checked the bit widths, which allowed failed to catch a few cases, while warning on other safe comparisons.

http://llvm-reviews.chandlerc.com/D113

Files:
  test/Analysis/additive-folding.cpp
  test/SemaCXX/compare.cpp
  test/SemaCXX/warn-enum-compare.cpp
  lib/Sema/SemaChecking.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113.1.patch
Type: text/x-patch
Size: 11026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121112/ce942fa8/attachment.bin>


More information about the cfe-commits mailing list