diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 760805be3..cf6de418a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: check-yaml args: [--allow-multiple-documents] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.8 + rev: v19.1.0 hooks: - id: clang-format files: '.*\.(hpp|cpp|h)' @@ -15,12 +15,12 @@ repos: hooks: - id: buildifier - repo: https://github.com/Mateusz-Grzelinski/actionlint-py - rev: v1.7.1.15 + rev: v1.7.2.16 hooks: - id: actionlint additional_dependencies: [shellcheck-py] - repo: https://github.com/nicklockwood/SwiftFormat - rev: "0.54.3" + rev: "0.54.5" hooks: - id: swiftformat args: [--swiftversion, "5.8"] diff --git a/src/mbgl/layout/symbol_instance.hpp b/src/mbgl/layout/symbol_instance.hpp index 16f97e0ab..dc64699ae 100644 --- a/src/mbgl/layout/symbol_instance.hpp +++ b/src/mbgl/layout/symbol_instance.hpp @@ -46,7 +46,8 @@ struct source_location { #endif #else #define SYM_GUARD_LOC \ - {} + { \ + } #endif namespace mbgl { diff --git a/src/mbgl/style/conversion/constant.cpp b/src/mbgl/style/conversion/constant.cpp index a52a155be..96dd4a5bb 100644 --- a/src/mbgl/style/conversion/constant.cpp +++ b/src/mbgl/style/conversion/constant.cpp @@ -51,8 +51,9 @@ std::optional Converter>>::ope } template -auto Converter, typename std::enable_if_t>>::operator()( - const Convertible& value, Error& error) const -> std::optional> { +auto Converter, typename std::enable_if_t>>::operator()(const Convertible& value, + Error& error) const + -> std::optional> { if (!isArray(value)) { error.message = "value must be an array"; return std::nullopt; diff --git a/test/actor/actor.test.cpp b/test/actor/actor.test.cpp index fe39803af..406f788d7 100644 --- a/test/actor/actor.test.cpp +++ b/test/actor/actor.test.cpp @@ -34,7 +34,9 @@ TEST(Actor, Destruction) { }; bool destructed = false; - { Actor test(Scheduler::GetBackground(), std::ref(destructed)); } + { + Actor test(Scheduler::GetBackground(), std::ref(destructed)); + } EXPECT_TRUE(destructed); } diff --git a/test/renderer/backend_scope.test.cpp b/test/renderer/backend_scope.test.cpp index 78b8fe6cb..41b0b27e9 100644 --- a/test/renderer/backend_scope.test.cpp +++ b/test/renderer/backend_scope.test.cpp @@ -55,7 +55,9 @@ TEST(BackendScope, SingleScope) { deactivated = true; }; - { gfx::BackendScope test{backend}; } + { + gfx::BackendScope test{backend}; + } ASSERT_TRUE(activated); ASSERT_TRUE(deactivated); diff --git a/test/storage/offline_database.test.cpp b/test/storage/offline_database.test.cpp index fe7aa34f3..d47a9f3c2 100644 --- a/test/storage/offline_database.test.cpp +++ b/test/storage/offline_database.test.cpp @@ -232,7 +232,9 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(SchemaVersion)) { db.exec("PRAGMA user_version = 1"); } - { OfflineDatabase db(filename, fixture::tileServerOptions); } + { + OfflineDatabase db(filename, fixture::tileServerOptions); + } EXPECT_EQ(6, databaseUserVersion(filename)); @@ -567,7 +569,9 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(DISABLED_MaximumAmbientCacheSize)) { return util::read_file(filename).size(); }; - { OfflineDatabase db(filename, fixture::tileServerOptions); } + { + OfflineDatabase db(filename, fixture::tileServerOptions); + } size_t initialSize = util::read_file(filename).size(); size_t maximumSize = 50 * 1024 * 1024; @@ -716,7 +720,9 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(DeleteRegion)) { FixtureLog log; deleteDatabaseFiles(); - { OfflineDatabase dbCreate(filename, fixture::tileServerOptions); } + { + OfflineDatabase dbCreate(filename, fixture::tileServerOptions); + } #ifndef __QT__ // Qt doesn't decrease the size of the database file. size_t initialSize = util::read_file(filename).size(); @@ -1015,7 +1021,9 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(ClearAmbientCache)) { FixtureLog log; deleteDatabaseFiles(); - { OfflineDatabase dbCreate(filename, fixture::tileServerOptions); } + { + OfflineDatabase dbCreate(filename, fixture::tileServerOptions); + } #ifndef __QT__ // Qt doesn't decrease the size of the database file. size_t initialSize = util::read_file(filename).size();