summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-10-28 14:51:09 +0000
committerDaniel Jasper <djasper@google.com>2015-10-28 14:51:09 +0000
commit15cffc00b38b59930413b7184be6ec503d963ec1 (patch)
treed86fa7e977c2901d28d5f7b5366b6181f8988163 /clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c
parent069b2dd66c42af8e12e698b0f53c2a657a60f948 (diff)
downloadbcm5719-llvm-15cffc00b38b59930413b7184be6ec503d963ec1.tar.gz
bcm5719-llvm-15cffc00b38b59930413b7184be6ec503d963ec1.zip
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. llvm-svn: 251520
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c')
-rw-r--r--clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c b/clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c
index 831bf229f88..fdaf3757069 100644
--- a/clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c
+++ b/clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c
@@ -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;
OpenPOWER on IntegriCloud