[clang-tools-extra] r250986 - clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp: Tweak not to depend on out-of-tree header <cstdarg>.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 21:51:47 PDT 2015


Author: chapuni
Date: Wed Oct 21 23:51:47 2015
New Revision: 250986

URL: http://llvm.org/viewvc/llvm-project?rev=250986&view=rev
Log:
clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp: Tweak not to depend on out-of-tree header <cstdarg>.

Modified:
    clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp?rev=250986&r1=250985&r2=250986&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp Wed Oct 21 23:51:47 2015
@@ -36,7 +36,7 @@ void CallFooIfAvailable(T& t) {
   CallFooIfAvailableImpl(t, 0); // OK to call variadic function when the argument is a literal 0
 }
 
-#include <cstdarg>
+#include <stdarg.h>
 void my_printf(const char* format, ...) {
   va_list ap;
   va_start(ap, format);




More information about the cfe-commits mailing list