[cfe-commits] [Patch] Warn about |= in conditionals

Ted Kremenek kremenek at apple.com
Wed Jan 19 10:18:24 PST 2011


On Jan 19, 2011, at 8:54 AM, Douglas Gregor <dgregor at apple.com> wrote:

>> Also, I considered whether it would make sense to warn for all
>> assignment operators in conditionals, and not just common typos (i.e.
>> = and |=). Do you think that would make sense?
> 
> 
> Personally, I'd rather keep the warning to likely typos.

+1

Warnings are most useful when they find real issues 90% of the time.



More information about the cfe-commits mailing list