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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits