http://llvm.org/bugs/show_bug.cgi?id=12214
How about something as simple as this? Note that labels in the switch are no longer sorted but this isn't the only place.
Differential D3753
PR12214 - warn on suspicious self-compound-assignments nikola on May 13 2014, 10:53 PM. Authored by
Details
http://llvm.org/bugs/show_bug.cgi?id=12214 How about something as simple as this? Note that labels in the switch are no longer sorted but this isn't the only place.
Diff Detail Event TimelineComment Actions Are you happy with the message or should we go for something more specific mentioning bitwise operators? Comment Actions Maybe tweak the diagnostic (for both this case and the normal self-assignment case) to: explicitly assigning value of variable of type %0 to itself (Adding the 'value of' makes this message work better for the compound-assignment case.) Other than that, LGTM |