[cfe-commits] [PATCH] Warn on function-to-bool conversion.

Richard Trieu rtrieu at google.com
Mon Dec 5 21:11:02 PST 2011


On Mon, Dec 5, 2011 at 12:55 PM, Lang Hames <lhames at gmail.com> wrote:

> Thanks for the feedback Doug and Richard. Committed (with feedback
> incorporated) in r145845 and r145849.
>
> - Lang.
>

Hey Lang,

I patched a corner case where a function reference that's a parameter which
later gets cast to bool (r145918).  Although a bit rarer, parameters which
are functions might be another place you can extend your warning.

Richard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111205/2386ee60/attachment.html>


More information about the cfe-commits mailing list