[PATCH] D66044: Extend -Wtautological-overlap-compare to accept negative values and integer conversions

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 12 15:08:54 PDT 2019


NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.

Looks great, thanks! I'd appreciate direct CFG tests for the part that changes the CFG (cf. `test/Analysis/cfg.cpp`), but i don't insist. Let's make sure @jfb is happy and commit :)



================
Comment at: lib/Analysis/CFG.cpp:1104
     bool AlwaysTrue = true, AlwaysFalse = true;
+    // Track value of both subexpression.  If either side is always
+    // true/false, another warning should have already been emitted.
----------------
Typo: "subexpressions".


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

https://reviews.llvm.org/D66044





More information about the cfe-commits mailing list