summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-08-27 23:43:39 +0000
committerAlexander Kornienko <alexfh@google.com>2015-08-27 23:43:39 +0000
commitf0fa8a80a384a61ff2dbfdee028ec000e1b5c697 (patch)
tree3dc61f198c962b29ab6921dcc862dc36de0d4339 /clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp
parenta1d7ece05c9b4b33c45aea08efc5ac861052fed5 (diff)
downloadbcm5719-llvm-f0fa8a80a384a61ff2dbfdee028ec000e1b5c697.tar.gz
bcm5719-llvm-f0fa8a80a384a61ff2dbfdee028ec000e1b5c697.zip
[clang-tidy] Documented the reason to run the test in C++98 mode.
llvm-svn: 246238
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.cpp3
1 files changed, 3 insertions, 0 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 e78c5f1a147..f384d26163b 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,5 +1,8 @@
// RUN: %python %S/check_clang_tidy.py %s modernize-use-nullptr %t -- \
// RUN: -std=c++98 -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.
const unsigned int g_null = 0;
#define NULL 0
OpenPOWER on IntegriCloud