[cfe-commits] Patch: Add warning for variable initialization that references the value of itself
Chandler Carruth
chandlerc at google.com
Sun Mar 27 02:53:17 PDT 2011
Thanks Richard. I've committed this after making a few tweaks in r128376.
For reference, the tweaks I made were:
- Moved under -Wuninitialized and grouped the warning appropriately for that
- Slightly tweaked the wording to flow better and match existing
uninitialized warnings' wording
- Only underline the identifier rather than the entire declaration. I think
this looks a bit better and should avoid issues in cases like:
int x, y = y + 2;
- Some formatting tweaks here and there.
On Tue, Mar 22, 2011 at 6:43 PM, Richard Trieu <rtrieu at google.com> wrote:
> Add a warning on variable initialization which references its own value.
> Non-evaluated expressions, such as address of or size of operations, are
> not warned on.
> _______________________________________________
> 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/20110327/fc593fb1/attachment.html>
More information about the cfe-commits
mailing list