[pre-commit.ci] pre-commit autoupdate (#2815)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7819c18b37
commit
b4c8b12ba3
@@ -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"]
|
||||
|
||||
@@ -46,7 +46,8 @@ struct source_location {
|
||||
#endif
|
||||
#else
|
||||
#define SYM_GUARD_LOC \
|
||||
{}
|
||||
{ \
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -51,8 +51,9 @@ std::optional<T> Converter<T, typename std::enable_if_t<std::is_enum_v<T>>>::ope
|
||||
}
|
||||
|
||||
template <class T>
|
||||
auto Converter<std::vector<T>, typename std::enable_if_t<std::is_enum_v<T>>>::operator()(
|
||||
const Convertible& value, Error& error) const -> std::optional<std::vector<T>> {
|
||||
auto Converter<std::vector<T>, typename std::enable_if_t<std::is_enum_v<T>>>::operator()(const Convertible& value,
|
||||
Error& error) const
|
||||
-> std::optional<std::vector<T>> {
|
||||
if (!isArray(value)) {
|
||||
error.message = "value must be an array";
|
||||
return std::nullopt;
|
||||
|
||||
@@ -34,7 +34,9 @@ TEST(Actor, Destruction) {
|
||||
};
|
||||
|
||||
bool destructed = false;
|
||||
{ Actor<TestActor> test(Scheduler::GetBackground(), std::ref(destructed)); }
|
||||
{
|
||||
Actor<TestActor> test(Scheduler::GetBackground(), std::ref(destructed));
|
||||
}
|
||||
|
||||
EXPECT_TRUE(destructed);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,9 @@ TEST(BackendScope, SingleScope) {
|
||||
deactivated = true;
|
||||
};
|
||||
|
||||
{ gfx::BackendScope test{backend}; }
|
||||
{
|
||||
gfx::BackendScope test{backend};
|
||||
}
|
||||
|
||||
ASSERT_TRUE(activated);
|
||||
ASSERT_TRUE(deactivated);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user