Commit 6d224d34 authored by Rosen Penev's avatar Rosen Penev Committed by Andreas Schuh

[clang-tidy] Replace deprecated C headers

Deprecated with C++14.

Found with modernize-deprecated-headers
Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 0b7f8db2
...@@ -90,18 +90,18 @@ ...@@ -90,18 +90,18 @@
#include "config.h" #include "config.h"
#include "gflags/gflags.h" #include "gflags/gflags.h"
#include <assert.h> #include <cassert>
#include <ctype.h> #include <cctype>
#include <errno.h> #include <cerrno>
#if defined(HAVE_FNMATCH_H) #if defined(HAVE_FNMATCH_H)
# include <fnmatch.h> # include <fnmatch.h>
#elif defined(HAVE_SHLWAPI_H) #elif defined(HAVE_SHLWAPI_H)
# define NO_SHLWAPI_ISOS # define NO_SHLWAPI_ISOS
# include <shlwapi.h> # include <shlwapi.h>
#endif #endif
#include <stdarg.h> // For va_list and related operations #include <cstdarg> // For va_list and related operations
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include <algorithm> #include <algorithm>
#include <map> #include <map>
......
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
// 5a) Force bash to place most-relevent groups at the top of the list // 5a) Force bash to place most-relevent groups at the top of the list
// 5b) Trim most flag's descriptions to fit on a single terminal line // 5b) Trim most flag's descriptions to fit on a single terminal line
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <string.h> // for strlen #include <cstring> // for strlen
#include <set> #include <set>
#include <string> #include <string>
......
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
// called after all flag-values have been assigned, that is, after // called after all flag-values have been assigned, that is, after
// parsing the command-line. // parsing the command-line.
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include <ctype.h> #include <cctype>
#include <assert.h> #include <cassert>
#include <string> #include <string>
#include <vector> #include <vector>
......
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