[cfe-dev] -Wunreachable-code and templates

Ted Kremenek kremenek at apple.com
Wed Nov 30 13:26:32 PST 2011


On Nov 30, 2011, at 11:54 AM, Ted Kremenek wrote:

> Realistically, unless we really want to be super clever here, the most immediate solution to making -Wunreachable-code useful in the presence of templates is to simply have it skip templates entirely.

In the spirit of improving the utility of the warning, I have gone and done this in r145520.  If we come up with a better solution, we can certainly change this.  I believe the general solution, if one exists, will be very complex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111130/7a1709cf/attachment.html>


More information about the cfe-dev mailing list