[PATCH] PR12214 - warn on suspicious self-compound-assignments
Nikola Smiljanic
popizdeh at gmail.com
Thu May 29 19:58:12 PDT 2014
> notice that a^=a actually does change the value.
>
We issue the warning only for |= and &= for this reason. The thes for ^= is
there to make sure there's no diagnostic.
> I assume this diagnostic is automatically suppressed in the case that
> we're really calling an overloaded operator|= or something, right?
I've just tried this and self-assign warning is not issued for overloaded
operators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140530/a460b2c4/attachment.html>
More information about the cfe-commits
mailing list