We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aecaaa commit f813007Copy full SHA for f813007
clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr-basic.cpp
@@ -199,12 +199,14 @@ void *test_parentheses_explicit_cast_sequence1() {
199
// CHECK-FIXES: return(static_cast<void*>(nullptr));
200
}
201
202
-// FIXME: this case should trigger the warning.
+// FIXME: this case triggers the warning on Windows but not on Linux.
203
+#if 0
204
void *test_parentheses_explicit_cast_sequence2() {
205
return(static_cast<void*>(reinterpret_cast<int*>((float*)int(0.f))));
206
// DISABLED-CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use nullptr
207
// DISABLED-CHECK-FIXES: return(static_cast<void*>(nullptr));
208
209
+#endif
210
211
// Test explicit cast expressions resulting in nullptr.
212
struct Bam {
0 commit comments