[cfe-commits] [Patch] Add a warning for for loops with conditions that do not change

Richard Trieu rtrieu at google.com
Mon Mar 26 14:45:07 PDT 2012


On Thu, Mar 22, 2012 at 4:20 PM, Richard Trieu <rtrieu at google.com> wrote:

> New patch for the for-loop warning.
>
> Changes:
> Both visitors are now EvaluatedExprVisitor
> The DeclExtractor, used on the conditional, works on a whitelist of Expr's
> instead of a blacklist.
> Fixed edge cases in the DeclMatcher with respect to LValueToRValue
> conversions.  Some casts aren't directly on DeclRefExprs.
> Added variable names to the warning.  Up to 4 variable names will be
> displayed.
>

Ping.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120326/f37a942b/attachment.html>


More information about the cfe-commits mailing list