[clang-tools-extra] r251520 - Change test to just define NULL instead of #including stddef.h. In some
Daniel Jasper via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 28 07:51:09 PDT 2015
Author: djasper
Date: Wed Oct 28 09:51:09 2015
New Revision: 251520
URL: http://llvm.org/viewvc/llvm-project?rev=251520&view=rev
Log:
Change test to just define NULL instead of #including stddef.h. In some
test environments, even that builtin header isn't available. Also, this
makes it more consistent with the C++ version of this test.
Modified:
clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg.c
Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg.c
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg.c?rev=251520&r1=251519&r2=251520&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg.c (original)
+++ clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg.c Wed Oct 28 09:51:09 2015
@@ -1,6 +1,6 @@
// RUN: clang-tidy -checks=-*,modernize-redundant-void-arg %s -- -x c | count 0
-#include <stddef.h>
+#define NULL 0
extern int i;
More information about the cfe-commits
mailing list