Blender Git Commit Log

Git Commits -> Revision 11c4066

Revision 11c4066 by Sybren A. Stüvel (master)
December 7, 2020, 11:41 (GMT)
Cleanup: partial Clang-Tidy modernize-loop-convert

Modernize loops by using the `for(type variable : container)` syntax.

Some loops were trivial to fix, whereas others required more attention
to avoid semantic changes. I couldn't address all old-style loops, so
this commit doesn't enable the `modernize-loop-convert` rule.

Although Clang-Tidy's auto-fixer prefers to use `auto` for the loop
variable declaration, I made as many declarations as possible explicit.
To me this increases local readability, as you don't need to fully
understand the container in order to understand the loop variable type.

No functional changes.

Commit Details:

Full Hash: 11c4066159e12ff630673c5fd94b37fb8c0f9102
Parent Commit: 2072134
Lines Changed: +105, -135

21 Modified Paths:

/source/blender/blenlib/tests/BLI_linklist_lockfree_test.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+1, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+1, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+2, -2) (Diff)
/source/blender/gpu/intern/gpu_batch.cc (+2, -2) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.cc (+26, -26) (Diff)
/source/blender/gpu/intern/gpu_shader.cc (+3, -3) (Diff)
/source/blender/ikplugin/intern/itasc_plugin.cpp (+2, -2) (Diff)
/source/blender/imbuf/intern/dds/BlockDXT.cpp (+2, -2) (Diff)
/source/blender/imbuf/intern/dds/ColorBlock.cpp (+8, -8) (Diff)
/source/blender/imbuf/intern/openexr/openexr_api.cpp (+22, -29) (Diff)
/source/blender/io/alembic/intern/abc_reader_mesh.cc (+1, -3) (Diff)
/source/blender/io/collada/AnimationImporter.cpp (+4, -5) (Diff)
/source/blender/io/collada/BCMath.cpp (+7, -7) (Diff)
/source/blender/io/collada/BlenderContext.cpp (+2, -2) (Diff)
/source/blender/io/collada/collada_internal.cpp (+1, -2) (Diff)
/source/blender/io/collada/collada_utils.cpp (+4, -8) (Diff)
/source/blender/io/collada/ControllerExporter.cpp (+7, -7) (Diff)
/source/blender/io/collada/DocumentImporter.cpp (+4, -11) (Diff)
/source/blender/io/collada/MeshImporter.cpp (+3, -8) (Diff)
/source/blender/io/collada/SceneExporter.cpp (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021