[cfe-commits] r140405 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp lib/Sema/SemaExprCXX.cpp test/SemaCXX/warn-literal-conversion.cpp
chandlerc at google.com
Mon Sep 26 02:42:00 CDT 2011
On Fri, Sep 23, 2011 at 1:10 PM, Richard Trieu <rtrieu at google.com> wrote:
> Add a new warning to -Wliteral-conversion to catch cases where a string
> is cast to a boolean.
What ever happened to putting this under -Wbool-conversion? I think
bool-conversion is a narrower categorization than literal-conversion. I
suspect it is already a strict subset, and if not we could make it a strict
Essentially, I know of lots of code (ours included) which uses
-Wbool-conversion by default, but not a lot that can use
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits