[cfe-commits] r124668 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp test/Analysis/self-init.m test/SemaCXX/warn-assignment-condition.cpp

jahanian fjahanian at apple.com
Tue Feb 1 14:09:56 PST 2011


On Feb 1, 2011, at 2:04 PM, Argyrios Kyrtzidis wrote:
>> 
> 
> Why not,
> 
> if (((do-something-elaborate-that-results-in-lvalue-that-i-want-to-assign-and-check) = b))

It is subjective of course. I thought, there should be a way to escape this warning (other than by flag), and putting paren 
is a way to make the intention known.

- Fariborz

> 
> seems reasonable to me.
> 
>> 
>> - Fariborz
>> 
>>> 
>>> -Argiris
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110201/9ee2a034/attachment.html>


More information about the cfe-commits mailing list