[cfe-dev] [Clang 3.0] Inconsistent warnings about assignment in a condition

Ted Kremenek kremenek at apple.com
Fri Mar 16 15:59:36 PDT 2012


On Mar 16, 2012, at 3:38 PM, Kyle Sluder <kyle at ksluder.com> wrote:

> AFAICT Apple's new preferred approach for self-assignment in initializers doesn't use assignment-in-if anymore. So maybe it should be reconsidered?

It wouldn't be worth it.  There is a ton of existing code, even if the coding practices have evolved.  It's also trivial to recognize, and the warning would add no value.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120316/5cca4d5f/attachment.html>


More information about the cfe-dev mailing list