diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-03-14 22:28:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-03-14 22:28:22 +0000 |
commit | 1ce8dbb93f1b749d5498b28a16b2efacdd73bd33 (patch) | |
tree | d1a90e7978625b5365fb5a774063464373779cc3 /clang/test/Analysis/nullptr.cpp | |
parent | ddddca3e6d6559d8a9f1af476b82bf9bb0a90cef (diff) | |
download | bcm5719-llvm-1ce8dbb93f1b749d5498b28a16b2efacdd73bd33.tar.gz bcm5719-llvm-1ce8dbb93f1b749d5498b28a16b2efacdd73bd33.zip |
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.
llvm-svn: 152745
Diffstat (limited to 'clang/test/Analysis/nullptr.cpp')
-rw-r--r-- | clang/test/Analysis/nullptr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/nullptr.cpp b/clang/test/Analysis/nullptr.cpp index c0fed872428..3119b4fc390 100644 --- a/clang/test/Analysis/nullptr.cpp +++ b/clang/test/Analysis/nullptr.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -std=c++11 -analyze -analyzer-checker=core -analyzer-store region -verify %s +// RUN: %clang_cc1 -std=c++11 -Wno-conversion-null -analyze -analyzer-checker=core -analyzer-store region -verify %s // test to see if nullptr is detected as a null pointer void foo1(void) { |