[clang-tidy] Documented the reason to run the test in C++98 mode.

llvm-svn: 246238
This commit is contained in:
Alexander Kornienko 2015-08-27 23:43:39 +00:00
parent a1d7ece05c
commit f0fa8a80a3
1 changed files with 3 additions and 0 deletions

View File

@ -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