diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-03-15 04:50:32 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-03-15 04:50:32 +0000 |
commit | 95187bdd5c955c8edf3527eae41f1e4f80377f27 (patch) | |
tree | c8917da28b1f293a92634cfaf15599123e7ee0fb /test/Analysis | |
parent | 7267839dc2fe8ec16445081c3b740ffda5ead217 (diff) |
Reapply r152745 (reverted in 152765) now that compiler-rt is fixed.
Original commit message:
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@152774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/nullptr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/nullptr.cpp b/test/Analysis/nullptr.cpp index c0fed87242..3119b4fc39 100644 --- a/test/Analysis/nullptr.cpp +++ b/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) { |