diff options
author | Richard Trieu <rtrieu@google.com> | 2014-10-15 03:42:06 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-10-15 03:42:06 +0000 |
commit | 5b993500aec59e3b42038e1d335da6fc6a78886d (patch) | |
tree | eb478b689c9a43968b5e83abd0239187ade088b7 /clang/test/SemaCXX/nullptr.cpp | |
parent | 2954280f6a2bbc611b5731535473c4fe1b5378bd (diff) | |
download | bcm5719-llvm-5b993500aec59e3b42038e1d335da6fc6a78886d.tar.gz bcm5719-llvm-5b993500aec59e3b42038e1d335da6fc6a78886d.zip |
Improvements to -Wnull-conversion
Split logic to separate checking function
Refine the macro checking
Catch nullptr->bool conversions
Add some explanatory comments
llvm-svn: 219774
Diffstat (limited to 'clang/test/SemaCXX/nullptr.cpp')
-rw-r--r-- | clang/test/SemaCXX/nullptr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/nullptr.cpp b/clang/test/SemaCXX/nullptr.cpp index 28798a4f8ce..7d765b482c7 100644 --- a/clang/test/SemaCXX/nullptr.cpp +++ b/clang/test/SemaCXX/nullptr.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify -std=c++11 -ffreestanding %s +// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify -std=c++11 -ffreestanding -Wno-null-conversion %s #include <stdint.h> typedef decltype(nullptr) nullptr_t; |