Author: alexfh Date: Thu Aug 27 18:43:39 2015 New Revision: 246238 URL: http://llvm.org/viewvc/llvm-project?rev=246238&view=rev Log: [clang-tidy] Documented the reason to run the test in C++98 mode.
Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp?rev=246238&r1=246237&r2=246238&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp Thu Aug 27 18:43:39 2015 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits