summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2019-05-20 09:26:47 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2019-05-20 09:26:47 +0000
commitcb18647b19ef1a6b42409c4e39bd9b8caf9555a7 (patch)
treec4e49641a033b1f558b0f964cb0140e5348b0ee3 /clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
parenta760e698405c2756d8901c11f31061b904746e2c (diff)
downloadbcm5719-llvm-cb18647b19ef1a6b42409c4e39bd9b8caf9555a7.tar.gz
bcm5719-llvm-cb18647b19ef1a6b42409c4e39bd9b8caf9555a7.zip
Run ClangTidy tests in all C++ language modes
Summary: I inspected every test and did one of the following: - changed the test to run in all language modes, - added a comment explaining why the test is only applicable in a certain mode, - limited the test to language modes where it passes and added a FIXME to fix the checker or the test. Reviewers: alexfh, lebedev.ri Subscribers: nemanjai, kbarton, arphaman, jdoerfert, lebedev.ri, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62125 llvm-svn: 361131
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
index 7a953a70c77..5fd823b754e 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
+++ b/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
@@ -1,8 +1,9 @@
-// RUN: %check_clang_tidy %s modernize-use-nullptr %t -- -- \
-// RUN: -std=c++98 -Wno-non-literal-null-conversion
+// RUN: %check_clang_tidy -std=c++98 %s modernize-use-nullptr %t -- -- -Wno-non-literal-null-conversion
//
// Some parts of the test (e.g. assignment of `const int` to `int *`) fail in
// C++11, so we need to run the test in C++98 mode.
+//
+// FIXME: Make the test work in all language modes.
const unsigned int g_null = 0;
#define NULL 0
OpenPOWER on IntegriCloud