On Feb 1, 2011, at 10:24 AM, Argyrios Kyrtzidis wrote:
> Author: akirtzidis
> Date: Tue Feb  1 12:24:22 2011
> New Revision: 124668
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=124668&view=rev
> Log:
> Warn for "if ((a == b))" where the equality expression is needlessly wrapped 
> inside parentheses.
> It's highly likely that the user intended an assignment used as condition.

Interesting.  I'm worried that some people do this idiomatically, but I'm 
willing to wait and see.  Please don't warn unless the LHS of the == is a 
modifiable l-value, though.

John.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to