diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77b8a3fae58..83ac70c2613 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.6 + rev: v18.1.7 hooks: - id: clang-format files: '.*\.(hpp|cpp|h)' diff --git a/platform/default/src/mbgl/storage/main_resource_loader.cpp b/platform/default/src/mbgl/storage/main_resource_loader.cpp index a5cbd0616c8..2ffff3d7fe2 100644 --- a/platform/default/src/mbgl/storage/main_resource_loader.cpp +++ b/platform/default/src/mbgl/storage/main_resource_loader.cpp @@ -50,11 +50,10 @@ class MainResourceLoaderThread { if (res.kind == Resource::Kind::Tile) { // onlineResponse.data will be null if data not modified MBGL_TIMING_FINISH(watch, - " Action: " - << "Requesting," - << " URL: " << res.url.c_str() << " Size: " - << (response.data != nullptr ? response.data->size() : 0) << "B," - << " Time") + " Action: " << "Requesting," + << " URL: " << res.url.c_str() << " Size: " + << (response.data != nullptr ? response.data->size() : 0) << "B," + << " Time") } callback(response); }); diff --git a/src/mbgl/tile/geometry_tile_worker.cpp b/src/mbgl/tile/geometry_tile_worker.cpp index adf1b603b35..73249842692 100644 --- a/src/mbgl/tile/geometry_tile_worker.cpp +++ b/src/mbgl/tile/geometry_tile_worker.cpp @@ -466,10 +466,10 @@ void GeometryTileWorker::parse() { requestNewImages(imageDependencies); MBGL_TIMING_FINISH(watch, - " Action: " - << "Parsing," - << " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast(id.canonical.z) - << "/" << id.canonical.x << "/" << id.canonical.y << " Time"); + " Action: " << "Parsing," + << " SourceID: " << sourceID.c_str() + << " Canonical: " << static_cast(id.canonical.z) << "/" << id.canonical.x << "/" + << id.canonical.y << " Time"); finalizeLayout(); } @@ -522,10 +522,10 @@ void GeometryTileWorker::finalizeLayout() { firstLoad = false; MBGL_TIMING_FINISH(watch, - " Action: " - << "SymbolLayout," - << " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast(id.canonical.z) - << "/" << id.canonical.x << "/" << id.canonical.y << " Time"); + " Action: " << "SymbolLayout," + << " SourceID: " << sourceID.c_str() + << " Canonical: " << static_cast(id.canonical.z) << "/" << id.canonical.x << "/" + << id.canonical.y << " Time"); parent.invoke(&GeometryTile::onLayout, std::make_shared(