Commit 2c179921 authored by Sean McBride's avatar Sean McBride
Browse files

Applied clang-tidy modernize-deprecated-headers

parent cb541c31
......@@ -20,9 +20,9 @@
#include <sstream>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#ifdef _MSC_VER
# pragma warning(disable : 4786)
......
......@@ -17,8 +17,8 @@
# include "Encoding.hxx.in"
#endif
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include <vector>
#ifdef _MSC_VER
......
......@@ -23,9 +23,9 @@
#include <string>
#include <vector>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <cctype>
#include <cstdio>
#include <cstring>
namespace KWSYS_NAMESPACE {
#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__)
// On Windows and Apple, no difference between lower and upper case
......
......@@ -28,8 +28,8 @@
# include "RegularExpression.hxx.in"
#endif
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
namespace KWSYS_NAMESPACE {
......
......@@ -64,9 +64,9 @@ typedef int siginfo_t;
#else
# include <sys/types.h>
# include <errno.h> // extern int errno;
# include <cerrno> // extern int errno;
# include <csignal>
# include <fcntl.h>
# include <signal.h>
# include <sys/resource.h> // getrlimit
# include <sys/time.h>
# include <sys/utsname.h> // int uname(struct utsname *buf);
......@@ -163,11 +163,11 @@ typedef struct rlimit ResourceLimitType;
# undef KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP
#endif
#include <ctype.h> // int isdigit(int c);
#include <cctype> // int isdigit(int c);
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(KWSYS_USE_LONG_LONG)
# if defined(KWSYS_IOS_HAS_OSTREAM_LONG_LONG)
......
......@@ -50,15 +50,15 @@
# pragma set woff 1375 /* base class destructor not virtual */
#endif
#include <ctype.h>
#include <errno.h>
#include <cctype>
#include <cerrno>
#ifdef __QNX__
# include <malloc.h> /* for malloc/free on QNX */
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if defined(_WIN32) && !defined(_MSC_VER) && defined(__GNUC__)
# include <strings.h> /* for strcasecmp */
......@@ -70,7 +70,7 @@
// support for realpath call
#ifndef _WIN32
# include <limits.h>
# include <climits>
# include <pwd.h>
# include <sys/ioctl.h>
# include <sys/time.h>
......@@ -81,7 +81,7 @@
# include <sys/param.h>
# include <termios.h>
# endif
# include <signal.h> /* sigprocmask */
# include <csignal> /* sigprocmask */
#endif
#ifdef __linux
......
......@@ -12,8 +12,8 @@
#include <iostream>
#include <vector>
#include <stddef.h> /* size_t */
#include <string.h> /* strcmp */
#include <cstddef> /* size_t */
#include <cstring> /* strcmp */
static void* random_ptr = reinterpret_cast<void*>(0x123);
......
......@@ -12,8 +12,8 @@
#include <iostream>
#include <vector>
#include <assert.h> /* assert */
#include <string.h> /* strcmp */
#include <cassert> /* assert */
#include <cstring> /* strcmp */
int testCommandLineArguments1(int argc, char* argv[])
{
......
......@@ -10,10 +10,10 @@
#include KWSYS_HEADER(Encoding.h)
#include <algorithm>
#include <clocale>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
// Work-around CMake dependency scanning limitation. This must
// duplicate the above list of headers.
......
......@@ -7,7 +7,7 @@
#endif
#include KWSYS_HEADER(FStream.hxx)
#include <string.h>
#include <cstring>
#ifdef __BORLANDC__
# include <mem.h> /* memcmp */
#endif
......
......@@ -20,10 +20,10 @@
// left on disk.
#include <testSystemTools.h>
#include <cstdlib> /* free */
#include <cstring> /* strcmp */
#include <iostream>
#include <sstream>
#include <stdlib.h> /* free */
#include <string.h> /* strcmp */
#if defined(_WIN32) && !defined(__CYGWIN__)
# include <io.h> /* _umask (MSVC) / umask (Borland) */
# ifdef _MSC_VER
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment