Address clang-tidy modernize-deprecated-headers (#2370)

This commit is contained in:
Andrew Gaul 2023-11-19 10:00:16 +09:00 committed by GitHub
parent ec8caf64b8
commit 68bbfee8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 30 additions and 32 deletions

View File

@ -43,7 +43,6 @@ Checks: '
-misc-use-anonymous-namespace, -misc-use-anonymous-namespace,
modernize-*, modernize-*,
-modernize-avoid-c-arrays, -modernize-avoid-c-arrays,
-modernize-deprecated-headers,
-modernize-loop-convert, -modernize-loop-convert,
-modernize-make-unique, -modernize-make-unique,
-modernize-raw-string-literal, -modernize-raw-string-literal,

View File

@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <ctime> #include <ctime>
#include <errno.h>
#include <memory> #include <memory>
#include <unistd.h> #include <unistd.h>
#include <fstream> #include <fstream>

View File

@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cerrno> #include <climits>
#include <memory> #include <memory>
#include <unistd.h> #include <unistd.h>
#include <limits.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "common.h" #include "common.h"

View File

@ -19,9 +19,9 @@
*/ */
#include <algorithm> #include <algorithm>
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <errno.h>
#include <memory> #include <memory>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -18,15 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <cerrno>
#include <stdlib.h> #include <cstdio>
#include <errno.h> #include <cstdlib>
#include <cstring>
#include <pthread.h> #include <pthread.h>
#include <unistd.h> #include <unistd.h>
#include <syslog.h> #include <syslog.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <string.h>
#include <gcrypt.h> #include <gcrypt.h>
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
#include <gnutls/crypto.h> #include <gnutls/crypto.h>

View File

@ -18,15 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <cerrno>
#include <stdlib.h> #include <cstdio>
#include <errno.h> #include <cstdlib>
#include <cstring>
#include <pthread.h> #include <pthread.h>
#include <unistd.h> #include <unistd.h>
#include <syslog.h> #include <syslog.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <string.h>
#include <nss.h> #include <nss.h>
#include <pk11pub.h> #include <pk11pub.h>
#include <hasht.h> #include <hasht.h>

View File

@ -19,9 +19,9 @@
*/ */
#include <algorithm> #include <algorithm>
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <errno.h>
#include <memory> #include <memory>
#include <set> #include <set>
#include <unistd.h> #include <unistd.h>

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <errno.h> #include <cerrno>
#include <unistd.h> #include <unistd.h>
#include <pwd.h> #include <pwd.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -18,9 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <limits> #include <limits>
#include <stdint.h>
#include <string> #include <string>
#include "s3fs_logger.h" #include "s3fs_logger.h"

View File

@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cerrno>
#include <cstdint>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <errno.h>
#include <stdint.h>
#include "s3fs_logger.h" #include "s3fs_logger.h"
#include "threadpoolman.h" #include "threadpoolman.h"

View File

@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -20,9 +20,9 @@
// Generate junk data at high speed. An alternative to dd if=/dev/urandom. // Generate junk data at high speed. An alternative to dd if=/dev/urandom.
#include <stdio.h> #include <cstdint>
#include <stdint.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {

View File

@ -18,15 +18,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <cerrno>
#include <stdlib.h> #include <cstdio>
#include <stdbool.h> #include <cstdlib>
#include <cstring>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <string.h>
#include <errno.h>
#ifndef __APPLE__ #ifndef __APPLE__
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif

View File

@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -18,8 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring>
#include <iostream> #include <iostream>
#include <climits> #include <climits>
#include <list> #include <list>
@ -31,8 +33,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h>
#include <errno.h>
//--------------------------------------------------------- //---------------------------------------------------------
// Structures and Typedefs // Structures and Typedefs