[cfe-commits] [Patch] Extend the self-reference on initialization warning to check constructor arguments as well.

Richard Trieu rtrieu at google.com
Fri Aug 19 11:45:58 PDT 2011


Extend the self-reference warning to catch when a constructor references
itself upon initialization, such as using itself within its own copy
constructor.

struct S {};
S s(s);

Patch attached and available at:

http://codereview.appspot.com/4934041/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110819/2b4c9a27/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: self-reference-in-constructor.patch
Type: text/x-patch
Size: 8413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110819/2b4c9a27/attachment.bin>


More information about the cfe-commits mailing list