Run clang-tidy against test files (#2568)

This commit is contained in:
Andrew Gaul 2024-10-23 20:46:01 +09:00 committed by GitHub
parent fe0a62118d
commit a8af6cb3b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -101,7 +101,9 @@ TESTS = \
test_string_util test_string_util
clang-tidy: clang-tidy:
clang-tidy -extra-arg-before=-xc++ *.h $(s3fs_SOURCES) -- $(DEPS_CFLAGS) $(CPPFLAGS) clang-tidy -extra-arg-before=-xc++ \
*.h $(s3fs_SOURCES) test_curl_util.cpp test_page_list.cpp test_string_util.cpp \
-- $(DEPS_CFLAGS) $(CPPFLAGS)
# #
# Local variables: # Local variables:

View File

@ -22,7 +22,7 @@
#include "fdcache_stat.h" #include "fdcache_stat.h"
#include "test_util.h" #include "test_util.h"
bool CacheFileStat::Open() { return false; } bool CacheFileStat::Open() { return false; } // NOLINT(readability-convert-member-functions-to-static)
void test_compress() void test_compress()
{ {