[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

Chandler Carruth chandlerc at google.com
Mon Sep 26 00:42:00 PDT 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
> literal
> 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
subset.

Essentially, I know of lots of code (ours included) which uses
-Wbool-conversion by default, but not a lot that can use
-Wliteral-conversion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110926/0fe6cff3/attachment.html>


More information about the cfe-commits mailing list