From 7cb46db9452852d78da64c7b5bf309e19ac7ef01 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Fri, 25 Oct 2024 16:13:57 +0900 Subject: [PATCH] Add missing string header (#2574) Found via clang-tidy. --- src/addhead.cpp | 1 + src/addhead.h | 1 + src/cache.cpp | 1 + src/curl.cpp | 3 ++- src/curl_util.cpp | 1 + src/fdcache.cpp | 1 + src/fdcache.h | 1 + src/fdcache_entity.cpp | 1 + src/fdcache_entity.h | 1 + src/fdcache_fdinfo.cpp | 1 + src/fdcache_fdinfo.h | 1 + src/fdcache_page.cpp | 1 + src/fdcache_stat.cpp | 1 + src/metaheader.cpp | 3 ++- src/mpu_util.cpp | 1 + src/s3fs.cpp | 1 + src/s3fs_cred.cpp | 1 + src/s3objlist.cpp | 1 + src/string_util.cpp | 1 + src/test_util.h | 1 + 20 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/addhead.cpp b/src/addhead.cpp index b35dda6..9832c32 100644 --- a/src/addhead.cpp +++ b/src/addhead.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include diff --git a/src/addhead.h b/src/addhead.h index a07e907..5f91c51 100644 --- a/src/addhead.h +++ b/src/addhead.h @@ -23,6 +23,7 @@ #include #include +#include #include #include diff --git a/src/cache.cpp b/src/cache.cpp index e80ca2f..744e536 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include diff --git a/src/curl.cpp b/src/curl.cpp index 67a5b6f..ace0928 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -25,8 +25,9 @@ #include #include #include -#include #include +#include +#include #include #include "common.h" diff --git a/src/curl_util.cpp b/src/curl_util.cpp index bfd0244..f0cb874 100644 --- a/src/curl_util.cpp +++ b/src/curl_util.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include "common.h" #include "s3fs_logger.h" diff --git a/src/fdcache.cpp b/src/fdcache.cpp index cb0dad5..4dda9e2 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/src/fdcache.h b/src/fdcache.h index b68f1ce..b737bdd 100644 --- a/src/fdcache.h +++ b/src/fdcache.h @@ -22,6 +22,7 @@ #define S3FS_FDCACHE_H_ #include +#include #include "common.h" #include "fdcache_entity.h" diff --git a/src/fdcache_entity.cpp b/src/fdcache_entity.cpp index 253fb0a..9ef84c4 100644 --- a/src/fdcache_entity.cpp +++ b/src/fdcache_entity.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/src/fdcache_entity.h b/src/fdcache_entity.h index 47497cd..9b6aee2 100644 --- a/src/fdcache_entity.h +++ b/src/fdcache_entity.h @@ -25,6 +25,7 @@ #include #include #include +#include #include "common.h" #include "fdcache_page.h" diff --git a/src/fdcache_fdinfo.cpp b/src/fdcache_fdinfo.cpp index 39fd1c5..75ee781 100644 --- a/src/fdcache_fdinfo.cpp +++ b/src/fdcache_fdinfo.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include diff --git a/src/fdcache_fdinfo.h b/src/fdcache_fdinfo.h index f1d17bf..45eb375 100644 --- a/src/fdcache_fdinfo.h +++ b/src/fdcache_fdinfo.h @@ -23,6 +23,7 @@ #include #include +#include #include "common.h" #include "fdcache_entity.h" diff --git a/src/fdcache_page.cpp b/src/fdcache_page.cpp index 5f9c08e..856aa0f 100644 --- a/src/fdcache_page.cpp +++ b/src/fdcache_page.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "common.h" diff --git a/src/fdcache_stat.cpp b/src/fdcache_stat.cpp index c337409..be68fe6 100644 --- a/src/fdcache_stat.cpp +++ b/src/fdcache_stat.cpp @@ -20,6 +20,7 @@ #include #include +#include #include #include diff --git a/src/metaheader.cpp b/src/metaheader.cpp index 532e413..80585c3 100644 --- a/src/metaheader.cpp +++ b/src/metaheader.cpp @@ -19,8 +19,9 @@ */ #include -#include +#include #include +#include #include "common.h" #include "metaheader.h" diff --git a/src/mpu_util.cpp b/src/mpu_util.cpp index 030d16f..dd39725 100644 --- a/src/mpu_util.cpp +++ b/src/mpu_util.cpp @@ -20,6 +20,7 @@ #include #include +#include #include "s3fs_logger.h" #include "mpu_util.h" diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 94614ce..dc082cf 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/src/s3fs_cred.cpp b/src/s3fs_cred.cpp index 0cc3e31..d09174b 100644 --- a/src/s3fs_cred.cpp +++ b/src/s3fs_cred.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "common.h" #include "s3fs_cred.h" diff --git a/src/s3objlist.cpp b/src/s3objlist.cpp index 6ab1011..71213a4 100644 --- a/src/s3objlist.cpp +++ b/src/s3objlist.cpp @@ -20,6 +20,7 @@ #include #include +#include #include "s3objlist.h" diff --git a/src/string_util.cpp b/src/string_util.cpp index 365e648..bdf786e 100644 --- a/src/string_util.cpp +++ b/src/string_util.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "s3fs_logger.h" diff --git a/src/test_util.h b/src/test_util.h index deb5311..77c0bac 100644 --- a/src/test_util.h +++ b/src/test_util.h @@ -24,6 +24,7 @@ #include #include #include +#include #include "string_util.h"