]> granicus.if.org Git - clang/commit
Provide -Wnull-conversion separately from -Wconversion.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 14 Mar 2012 22:28:22 +0000 (22:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 14 Mar 2012 22:28:22 +0000 (22:28 +0000)
commit47bfaf19ddc980a9eb48f2978f4da9b7861b9cda
tree6ad0bb8f92cbae6212f09659459828ae2e722752
parent10cde2fc0c1804427dd3e0c050c149ac6d415f51
Provide -Wnull-conversion separately from -Wconversion.

Like GCC, provide a NULL conversion to non-pointer conversion as a separate
flag, on by default. GCC's flag is "conversion-null" which we provide for
cross compatibility, but in the interests of consistency (with
-Wint-conversion, -Wbool-conversion, etc) the canonical Clang flag is called
-Wnull-conversion.

Patch by Lubos Lunak.
Review feedback by myself, Chandler Carruth, and Chad Rosier.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152745 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Driver/Tools.cpp
test/Analysis/nullptr.cpp
test/SemaCXX/__null.cpp
test/SemaCXX/conversion.cpp