clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp: Tweak not to depend on out-of-tree header <cstdarg>.
llvm-svn: 250986
This commit is contained in:
parent
0e304ea8a1
commit
6025991fa9
|
@ -36,7 +36,7 @@ void CallFooIfAvailable(T& t) {
|
||||||
CallFooIfAvailableImpl(t, 0); // OK to call variadic function when the argument is a literal 0
|
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, ...) {
|
void my_printf(const char* format, ...) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
|
|
Loading…
Reference in New Issue