From a532561e4b9b436e46f7b9e5cc0f84730ae567b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 1 Jul 2026 21:07:22 +0200 Subject: [PATCH] Put remaining single-statement branch contents on the following line. The regex pattern I used in fdfe327f9a35f19540bb47671fcf8358ac877cdf didn't manage to capture these. --- .../Shaders/Test/MeshVisualizerGLTest.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp b/src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp index 0c82613d1..f58024fd1 100644 --- a/src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp +++ b/src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp @@ -3658,7 +3658,8 @@ template void MeshVisualizerGLTest::renderDefault /* Generate per-face IDs going from 0 to 240 to cover the whole range */ Containers::Array ids{NoInit, 16}; - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i*16; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i*16; GL::Mesh circle = MeshTools::compile(MeshTools::combineFaceAttributes( MeshTools::generateIndices(Primitives::circle2DSolid(16)), { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId, @@ -3757,7 +3758,8 @@ template void MeshVisualizerGLTest::renderDefault /* Generate per-face IDs going from 0 to 228 to cover the whole range */ Containers::Array ids{NoInit, 20}; - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i*12; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i*12; GL::Mesh icosphere = MeshTools::compile(MeshTools::combineFaceAttributes( Primitives::icosphereSolid(0), { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId, @@ -4660,7 +4662,8 @@ template void MeshVisualizerGLTest::renderObjectV if(data.flags2D & MeshVisualizerGL2D::Flag::ObjectId) { Containers::Array ids{NoInit, 16}; /* Each two faces share the same ID */ - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i/2; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i/2; circleData = MeshTools::combineFaceAttributes( MeshTools::generateIndices(circleData), { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId, @@ -4876,7 +4879,8 @@ template void MeshVisualizerGLTest::renderObjectV if(data.flags3D & MeshVisualizerGL3D::Flag::ObjectId) { Containers::Array ids{NoInit, sphereData.indexCount()/3}; /* Each two faces share the same ID */ - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i/2; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i/2; sphereData = MeshTools::combineFaceAttributes( sphereData, { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId, @@ -6693,7 +6697,8 @@ void MeshVisualizerGLTest::renderMulti2D() { if(data.flags & MeshVisualizerGL2D::Flag::ObjectId) { Containers::Array ids{NoInit, 8}; /* Each two faces share the same ID */ - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i/2; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i/2; for(Trade::MeshData* i: {&circleData, &squareData, &triangleData}) { *i = MeshTools::combineFaceAttributes(*i, { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId, @@ -7035,7 +7040,8 @@ void MeshVisualizerGLTest::renderMulti3D() { if(data.flags & MeshVisualizerGL3D::Flag::ObjectId) { Containers::Array ids{NoInit, 20}; /* Each two faces share the same ID */ - for(std::size_t i = 0; i != ids.size(); ++i) ids[i] = i/2; + for(std::size_t i = 0; i != ids.size(); ++i) + ids[i] = i/2; for(Trade::MeshData* i: {&sphereData, &planeData, &coneData}) { *i = MeshTools::combineFaceAttributes(*i, { Trade::MeshAttributeData{Trade::MeshAttribute::ObjectId,