[cfe-commits] [Patch] Better wording for return with value from constructor

Hans Wennborg hans at chromium.org
Wed Jun 29 18:05:10 PDT 2011


Hi all,

The attached patch changes the error message for returning a value
from a constructor or destructor from: "void function 'C' should not
return a value" to "constructor 'C' should not return a value".

The warning definition does get a bit messier, so please comment if
there's a nicer way to do it.

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: return-has-expr.patch
Type: text/x-patch
Size: 2174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110630/c3cabacd/attachment.bin>


More information about the cfe-commits mailing list