diff --git a/.clang-tidy b/.clang-tidy index 52834b2..809d8d7 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -43,7 +43,6 @@ Checks: ' -misc-use-anonymous-namespace, modernize-*, -modernize-avoid-c-arrays, - -modernize-deprecated-headers, -modernize-loop-convert, -modernize-make-unique, -modernize-raw-string-literal, diff --git a/src/curl.cpp b/src/curl.cpp index 75f4824..c8ef7dc 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -18,10 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include #include -#include #include #include #include diff --git a/src/fdcache_entity.cpp b/src/fdcache_entity.cpp index 3ec154a..ee73d2d 100644 --- a/src/fdcache_entity.cpp +++ b/src/fdcache_entity.cpp @@ -18,12 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include -#include +#include #include #include -#include #include #include "common.h" diff --git a/src/fdcache_fdinfo.cpp b/src/fdcache_fdinfo.cpp index 9886241..c104ba2 100644 --- a/src/fdcache_fdinfo.cpp +++ b/src/fdcache_fdinfo.cpp @@ -19,9 +19,9 @@ */ #include +#include #include #include -#include #include #include #include diff --git a/src/gnutls_auth.cpp b/src/gnutls_auth.cpp index c0ef0dc..36d8395 100644 --- a/src/gnutls_auth.cpp +++ b/src/gnutls_auth.cpp @@ -18,15 +18,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include -#include +#include +#include +#include +#include #include #include #include #include #include -#include #include #include #include diff --git a/src/nss_auth.cpp b/src/nss_auth.cpp index e58ea0f..a8fc5ca 100644 --- a/src/nss_auth.cpp +++ b/src/nss_auth.cpp @@ -18,15 +18,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include -#include +#include +#include +#include +#include #include #include #include #include #include -#include #include #include #include diff --git a/src/s3fs.cpp b/src/s3fs.cpp index b5af510..64efe41 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -19,9 +19,9 @@ */ #include +#include #include #include -#include #include #include #include diff --git a/src/s3fs_cred.cpp b/src/s3fs_cred.cpp index a51e0c2..bce0c95 100644 --- a/src/s3fs_cred.cpp +++ b/src/s3fs_cred.cpp @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include #include diff --git a/src/test_string_util.cpp b/src/test_string_util.cpp index bdae2e6..3dcc34d 100644 --- a/src/test_string_util.cpp +++ b/src/test_string_util.cpp @@ -18,9 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include -#include #include #include "s3fs_logger.h" diff --git a/src/threadpoolman.cpp b/src/threadpoolman.cpp index 3f8b6a9..a5be537 100644 --- a/src/threadpoolman.cpp +++ b/src/threadpoolman.cpp @@ -18,10 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include +#include #include #include -#include -#include #include "s3fs_logger.h" #include "threadpoolman.h" diff --git a/test/cr_filename.cc b/test/cr_filename.cc index 411d078..d0402c5 100644 --- a/test/cr_filename.cc +++ b/test/cr_filename.cc @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include +#include +#include #include #include #include diff --git a/test/junk_data.cc b/test/junk_data.cc index 58026bb..d1a76d0 100644 --- a/test/junk_data.cc +++ b/test/junk_data.cc @@ -20,9 +20,9 @@ // Generate junk data at high speed. An alternative to dd if=/dev/urandom. -#include -#include -#include +#include +#include +#include int main(int argc, const char *argv[]) { diff --git a/test/mknod_test.cc b/test/mknod_test.cc index 3b31edb..f206d3c 100644 --- a/test/mknod_test.cc +++ b/test/mknod_test.cc @@ -18,15 +18,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include -#include +#include +#include +#include +#include #include #include #include #include -#include -#include #ifndef __APPLE__ #include #endif diff --git a/test/truncate_read_file.cc b/test/truncate_read_file.cc index eb9697d..9228a15 100644 --- a/test/truncate_read_file.cc +++ b/test/truncate_read_file.cc @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include +#include +#include #include #include #include diff --git a/test/write_multiblock.cc b/test/write_multiblock.cc index a6e4300..e77f98f 100644 --- a/test/write_multiblock.cc +++ b/test/write_multiblock.cc @@ -18,8 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include +#include #include #include #include @@ -31,8 +33,6 @@ #include #include #include -#include -#include //--------------------------------------------------------- // Structures and Typedefs