From 5fed9ac9b5885820a6e0845120cd93f7141fdb84 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 21 Apr 2020 12:39:12 +0200 Subject: Fix clang-format differences between version 6 and 9 Version 6 does not appear to respect clang-format off for header sorting. --- source/blender/freestyle/FRS_precomp.h | 31 +++++++++++----------- .../freestyle/intern/application/AppCanvas.cpp | 11 ++++---- .../freestyle/intern/application/AppConfig.h | 5 ++-- .../freestyle/intern/application/AppView.cpp | 9 +++---- .../blender/freestyle/intern/application/AppView.h | 5 ++-- .../freestyle/intern/application/Controller.cpp | 16 +++++------ .../intern/blender_interface/BlenderFileLoader.h | 6 ++--- .../blender_interface/BlenderStrokeRenderer.cpp | 2 -- source/blender/freestyle/intern/geometry/BBox.h | 4 +-- .../blender/freestyle/intern/geometry/FitCurve.cpp | 4 +-- .../freestyle/intern/geometry/GeomCleaner.cpp | 4 +-- .../freestyle/intern/geometry/normal_cycle.cpp | 4 +-- source/blender/freestyle/intern/stroke/Canvas.cpp | 6 ++--- source/blender/freestyle/intern/stroke/Chain.cpp | 4 +-- .../freestyle/intern/stroke/ChainingIterators.h | 4 +-- source/blender/freestyle/intern/stroke/Curve.cpp | 4 +-- .../blender/freestyle/intern/stroke/Operators.cpp | 6 ++--- .../freestyle/intern/stroke/PSStrokeRenderer.cpp | 4 +-- .../blender/freestyle/intern/stroke/Predicates1D.h | 4 +-- source/blender/freestyle/intern/stroke/Stroke.cpp | 4 +-- .../freestyle/intern/stroke/StrokeLayer.cpp | 4 +-- .../freestyle/intern/stroke/StrokeRenderer.h | 4 +-- .../blender/freestyle/intern/stroke/StrokeRep.cpp | 6 ++--- .../freestyle/intern/stroke/StrokeTesselator.cpp | 6 ++--- .../freestyle/intern/stroke/TextStrokeRenderer.h | 6 ++--- .../freestyle/intern/system/PythonInterpreter.h | 4 +-- .../freestyle/intern/system/StringUtils.cpp | 4 +-- .../blender/freestyle/intern/system/StringUtils.h | 4 +-- .../intern/view_map/GridDensityProvider.h | 4 +-- .../intern/view_map/SilhouetteGeomEngine.cpp | 4 +-- .../freestyle/intern/view_map/SphericalGrid.h | 4 +-- .../freestyle/intern/view_map/SteerableViewMap.cpp | 4 +-- .../blender/freestyle/intern/view_map/ViewMap.cpp | 4 +-- .../freestyle/intern/view_map/ViewMapBuilder.cpp | 6 ++--- .../freestyle/intern/view_map/ViewMapTesselator.h | 4 +-- .../freestyle/intern/winged_edge/WFillGrid.cpp | 4 +-- .../freestyle/intern/winged_edge/WSFillGrid.cpp | 4 +-- .../freestyle/intern/winged_edge/WXEdgeBuilder.cpp | 4 +-- 38 files changed, 74 insertions(+), 143 deletions(-) (limited to 'source/blender/freestyle') diff --git a/source/blender/freestyle/FRS_precomp.h b/source/blender/freestyle/FRS_precomp.h index 52f5b58aed0..64eac955fc9 100644 --- a/source/blender/freestyle/FRS_precomp.h +++ b/source/blender/freestyle/FRS_precomp.h @@ -1,26 +1,27 @@ /* Pre-compiled headers, see: D2606. */ -/* clang-format off */ #include -#include -#include -#include -#include -#include -#include + #include -#include +#include +#include +#include +#include #include +#include +#include +#include #include +#include #include -#include -#include -#include #include -#include -#include -#include #include +#include +#include +#include +#include +#include + #include "intern/python/BPy_BBox.h" #include "intern/python/BPy_BinaryPredicate0D.h" #include "intern/python/BPy_BinaryPredicate1D.h" @@ -47,5 +48,3 @@ #include "intern/python/BPy_ViewMap.h" #include "intern/python/BPy_ViewShape.h" #include "intern/python/Director.h" - -/* clang-format on */ diff --git a/source/blender/freestyle/intern/application/AppCanvas.cpp b/source/blender/freestyle/intern/application/AppCanvas.cpp index 1f3aea65e24..5681c65e5d2 100644 --- a/source/blender/freestyle/intern/application/AppCanvas.cpp +++ b/source/blender/freestyle/intern/application/AppCanvas.cpp @@ -18,18 +18,17 @@ * \ingroup freestyle */ -/* clang-format off */ -#include "Controller.h" +#include "AppCanvas.h" +#include "AppConfig.h" #include "AppView.h" +#include "Controller.h" + #include "../image/Image.h" -#include "../system/TimeStamp.h" #include "../stroke/StrokeRenderer.h" -#include "AppCanvas.h" -#include "AppConfig.h" #include "../stroke/StyleModule.h" +#include "../system/TimeStamp.h" #include "../system/StringUtils.h" -/* clang-format on */ namespace Freestyle { AppCanvas::AppCanvas() : Canvas() diff --git a/source/blender/freestyle/intern/application/AppConfig.h b/source/blender/freestyle/intern/application/AppConfig.h index 725b29e7dd8..34f5d220cfe 100644 --- a/source/blender/freestyle/intern/application/AppConfig.h +++ b/source/blender/freestyle/intern/application/AppConfig.h @@ -22,15 +22,14 @@ * \brief Configuration file */ -/* clang-format off */ -#include #include +#include + #include "../system/Precision.h" #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/application/AppView.cpp b/source/blender/freestyle/intern/application/AppView.cpp index 771d4b0fca8..0956d33a20e 100644 --- a/source/blender/freestyle/intern/application/AppView.cpp +++ b/source/blender/freestyle/intern/application/AppView.cpp @@ -18,20 +18,20 @@ * \ingroup freestyle */ -/* clang-format off */ #include -#include "Controller.h" #include "AppConfig.h" #include "AppView.h" -#include "../view_map/Silhouette.h" -#include "../view_map/ViewMap.h" +#include "Controller.h" + #include "../scene_graph/LineRep.h" #include "../scene_graph/NodeLight.h" #include "../scene_graph/NodeShape.h" #include "../scene_graph/VertexRep.h" #include "../stroke/Canvas.h" #include "../system/StringUtils.h" +#include "../view_map/Silhouette.h" +#include "../view_map/ViewMap.h" extern "C" { #include "BLI_blenlib.h" @@ -46,7 +46,6 @@ extern "C" { #include "FRS_freestyle.h" } -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/application/AppView.h b/source/blender/freestyle/intern/application/AppView.h index 4c60b1515f3..6009f2b0e50 100644 --- a/source/blender/freestyle/intern/application/AppView.h +++ b/source/blender/freestyle/intern/application/AppView.h @@ -21,10 +21,10 @@ * \ingroup freestyle */ -/* clang-format off */ #include "AppConfig.h" -#include "../geometry/Geom.h" + #include "../geometry/BBox.h" +#include "../geometry/Geom.h" #include "../scene_graph/NodeDrawingStyle.h" #include "../system/Precision.h" @@ -33,7 +33,6 @@ #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index c2f6796bf31..66195745cbb 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -18,18 +18,17 @@ * \ingroup freestyle */ -/* clang-format off */ extern "C" { #include } -#include -#include #include +#include +#include -#include "AppView.h" #include "AppCanvas.h" #include "AppConfig.h" +#include "AppView.h" #include "Controller.h" #include "../image/Image.h" @@ -42,12 +41,12 @@ extern "C" { #include "../scene_graph/VertexRep.h" #include "../stroke/PSStrokeRenderer.h" -#include "../stroke/TextStrokeRenderer.h" #include "../stroke/StrokeTesselator.h" #include "../stroke/StyleModule.h" +#include "../stroke/TextStrokeRenderer.h" -#include "../system/StringUtils.h" #include "../system/PythonInterpreter.h" +#include "../system/StringUtils.h" #include "../view_map/SteerableViewMap.h" #include "../view_map/ViewMap.h" @@ -56,21 +55,20 @@ extern "C" { #include "../winged_edge/Curvature.h" #include "../winged_edge/WEdge.h" -#include "../winged_edge/WingedEdgeBuilder.h" #include "../winged_edge/WXEdgeBuilder.h" +#include "../winged_edge/WingedEdgeBuilder.h" #include "../blender_interface/BlenderFileLoader.h" #include "../blender_interface/BlenderStrokeRenderer.h" #include "../blender_interface/BlenderStyleModule.h" #include "BKE_global.h" -#include "BLI_utildefines.h" #include "BLI_path_util.h" +#include "BLI_utildefines.h" #include "DNA_freestyle_types.h" #include "FRS_freestyle.h" -/* clang-format off */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h index fe93b179eb6..ad6379d5f52 100644 --- a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h +++ b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h @@ -21,9 +21,8 @@ * \ingroup freestyle */ -/* clang-format off */ -#include #include +#include #include "../geometry/BBox.h" #include "../geometry/Geom.h" @@ -31,8 +30,8 @@ #include "../geometry/GeomUtils.h" #include "../scene_graph/IndexedFaceSet.h" #include "../scene_graph/NodeGroup.h" -#include "../scene_graph/NodeTransform.h" #include "../scene_graph/NodeShape.h" +#include "../scene_graph/NodeTransform.h" #include "../system/FreestyleConfig.h" #include "../system/RenderMonitor.h" @@ -64,7 +63,6 @@ extern "C" { #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp b/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp index a61bad7cf8a..b8f3a27be9c 100644 --- a/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp +++ b/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp @@ -18,7 +18,6 @@ * \ingroup freestyle */ -/* clang-format off */ #include "BlenderStrokeRenderer.h" #include "../application/AppConfig.h" @@ -68,7 +67,6 @@ extern "C" { } #include -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/geometry/BBox.h b/source/blender/freestyle/intern/geometry/BBox.h index 0031a7ce860..a8965e63451 100644 --- a/source/blender/freestyle/intern/geometry/BBox.h +++ b/source/blender/freestyle/intern/geometry/BBox.h @@ -22,16 +22,14 @@ * \brief A class to hold a bounding box */ -/* clang-format off */ -#include #include +#include #include "BLI_utildefines.h" #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/geometry/FitCurve.cpp b/source/blender/freestyle/intern/geometry/FitCurve.cpp index bfc5e16aa2a..b60de93c4a1 100644 --- a/source/blender/freestyle/intern/geometry/FitCurve.cpp +++ b/source/blender/freestyle/intern/geometry/FitCurve.cpp @@ -20,13 +20,11 @@ * \brief from "Graphics Gems", Academic Press, 1990 */ -/* clang-format off */ #include // for malloc and free -#include #include +#include #include "FitCurve.h" -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/geometry/GeomCleaner.cpp b/source/blender/freestyle/intern/geometry/GeomCleaner.cpp index a7db17a4015..76e63764e4d 100644 --- a/source/blender/freestyle/intern/geometry/GeomCleaner.cpp +++ b/source/blender/freestyle/intern/geometry/GeomCleaner.cpp @@ -19,7 +19,6 @@ * \brief Class to define a cleaner of geometry providing a set of useful tools */ -/* clang-format off */ #if 0 # if defined(__GNUC__) && (__GNUC__ >= 3) // hash_map is not part of the C++ standard anymore; @@ -30,16 +29,15 @@ # endif #endif -#include #include #include +#include #include "GeomCleaner.h" #include "../system/TimeUtils.h" #include "BKE_global.h" -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/geometry/normal_cycle.cpp b/source/blender/freestyle/intern/geometry/normal_cycle.cpp index 5820bdc4865..d02b5cc2d5b 100644 --- a/source/blender/freestyle/intern/geometry/normal_cycle.cpp +++ b/source/blender/freestyle/intern/geometry/normal_cycle.cpp @@ -29,10 +29,8 @@ * \ingroup freestyle */ -/* clang-format off */ -#include "matrix_util.h" #include "normal_cycle.h" -/* clang-format on */ +#include "matrix_util.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/Canvas.cpp b/source/blender/freestyle/intern/stroke/Canvas.cpp index 8159279a846..7d04a55c5d9 100644 --- a/source/blender/freestyle/intern/stroke/Canvas.cpp +++ b/source/blender/freestyle/intern/stroke/Canvas.cpp @@ -19,7 +19,6 @@ * \brief Class to define a canvas designed to draw style modules */ -/* clang-format off */ #include #include @@ -27,13 +26,13 @@ #include "StrokeRenderer.h" #include "StyleModule.h" -#include "../image/Image.h" #include "../image/GaussianFilter.h" +#include "../image/Image.h" #include "../image/ImagePyramid.h" #include "../system/FreestyleConfig.h" -#include "../system/TimeStamp.h" #include "../system/PseudoNoise.h" +#include "../system/TimeStamp.h" #include "../view_map/SteerableViewMap.h" @@ -46,7 +45,6 @@ extern "C" { #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" } -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/stroke/Chain.cpp b/source/blender/freestyle/intern/stroke/Chain.cpp index 94c0b753985..562ca32be78 100644 --- a/source/blender/freestyle/intern/stroke/Chain.cpp +++ b/source/blender/freestyle/intern/stroke/Chain.cpp @@ -19,12 +19,10 @@ * \brief Class to define a chain of viewedges. */ -/* clang-format off */ #include "Chain.h" -#include "../view_map/ViewMapIterators.h" #include "../view_map/ViewMapAdvancedIterators.h" -/* clang-format on */ +#include "../view_map/ViewMapIterators.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.h b/source/blender/freestyle/intern/stroke/ChainingIterators.h index 569ca6fcf1d..36611a4a009 100644 --- a/source/blender/freestyle/intern/stroke/ChainingIterators.h +++ b/source/blender/freestyle/intern/stroke/ChainingIterators.h @@ -22,7 +22,6 @@ * \brief Chaining iterators */ -/* clang-format off */ #include #include "Predicates1D.h" @@ -30,9 +29,8 @@ #include "../system/Iterator.h" #include "../view_map/ViewMap.h" -#include "../view_map/ViewMapIterators.h" #include "../view_map/ViewMapAdvancedIterators.h" -/* clang-format on */ +#include "../view_map/ViewMapIterators.h" // using namespace ViewEdgeInternal; diff --git a/source/blender/freestyle/intern/stroke/Curve.cpp b/source/blender/freestyle/intern/stroke/Curve.cpp index 294f332d48d..02a1d32953d 100644 --- a/source/blender/freestyle/intern/stroke/Curve.cpp +++ b/source/blender/freestyle/intern/stroke/Curve.cpp @@ -19,16 +19,14 @@ * \brief Class to define a container for curves */ -/* clang-format off */ #include /* printf */ #include "Curve.h" -#include "CurveIterators.h" #include "CurveAdvancedIterators.h" +#include "CurveIterators.h" #include "BKE_global.h" #include "BLI_utildefines.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/Operators.cpp b/source/blender/freestyle/intern/stroke/Operators.cpp index b0d3f26bce4..25954c7ecbf 100644 --- a/source/blender/freestyle/intern/stroke/Operators.cpp +++ b/source/blender/freestyle/intern/stroke/Operators.cpp @@ -19,18 +19,16 @@ * \brief Class gathering stroke creation algorithms */ -/* clang-format off */ #include #include -#include "Operators.h" #include "Canvas.h" +#include "CurveIterators.h" +#include "Operators.h" #include "Stroke.h" #include "StrokeIterators.h" -#include "CurveIterators.h" #include "BKE_global.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/PSStrokeRenderer.cpp b/source/blender/freestyle/intern/stroke/PSStrokeRenderer.cpp index ff43e5986b3..c2c263696bc 100644 --- a/source/blender/freestyle/intern/stroke/PSStrokeRenderer.cpp +++ b/source/blender/freestyle/intern/stroke/PSStrokeRenderer.cpp @@ -19,10 +19,8 @@ * \brief Class to define the Postscript rendering of a stroke */ -/* clang-format off */ -#include "Canvas.h" #include "PSStrokeRenderer.h" -/* clang-format on */ +#include "Canvas.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/Predicates1D.h b/source/blender/freestyle/intern/stroke/Predicates1D.h index d549e960bd9..0ad4c69f869 100644 --- a/source/blender/freestyle/intern/stroke/Predicates1D.h +++ b/source/blender/freestyle/intern/stroke/Predicates1D.h @@ -22,20 +22,18 @@ * \brief Class gathering stroke creation algorithms */ -/* clang-format off */ #include #include "AdvancedFunctions1D.h" #include "../system/TimeStamp.h" -#include "../view_map/Interface1D.h" #include "../view_map/Functions1D.h" +#include "../view_map/Interface1D.h" #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index 0bd25c20ca5..2f29eac83b1 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -19,15 +19,13 @@ * \brief Classes to define a stroke */ -/* clang-format off */ #include "Stroke.h" -#include "StrokeIterators.h" #include "StrokeAdvancedIterators.h" +#include "StrokeIterators.h" #include "StrokeRenderer.h" #include "BKE_global.h" #include "BKE_node.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/StrokeLayer.cpp b/source/blender/freestyle/intern/stroke/StrokeLayer.cpp index 95598654dfe..9d12067512c 100644 --- a/source/blender/freestyle/intern/stroke/StrokeLayer.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeLayer.cpp @@ -19,11 +19,9 @@ * \brief Class to define a layer of strokes. */ -/* clang-format off */ +#include "StrokeLayer.h" #include "Canvas.h" #include "Stroke.h" -#include "StrokeLayer.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/StrokeRenderer.h b/source/blender/freestyle/intern/stroke/StrokeRenderer.h index 615d59ce6aa..67deb5eebf3 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRenderer.h +++ b/source/blender/freestyle/intern/stroke/StrokeRenderer.h @@ -22,10 +22,9 @@ * \brief Classes to render a stroke with OpenGL */ -/* clang-format off */ +#include #include #include -#include #include #include @@ -37,7 +36,6 @@ #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp index 81e69c6e34c..661c144476c 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp @@ -19,15 +19,13 @@ * \brief Class to define the representation of a stroke (for display purpose) */ -/* clang-format off */ +#include "StrokeRep.h" #include "Stroke.h" -#include "StrokeIterators.h" #include "StrokeAdvancedIterators.h" +#include "StrokeIterators.h" #include "StrokeRenderer.h" -#include "StrokeRep.h" #include "BKE_global.h" -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/stroke/StrokeTesselator.cpp b/source/blender/freestyle/intern/stroke/StrokeTesselator.cpp index 4f58827e941..e9a50067d4d 100644 --- a/source/blender/freestyle/intern/stroke/StrokeTesselator.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeTesselator.cpp @@ -19,14 +19,12 @@ * \brief Class to build a Node Tree designed to be displayed from a set of strokes structure. */ -/* clang-format off */ -#include "StrokeAdvancedIterators.h" #include "StrokeTesselator.h" +#include "StrokeAdvancedIterators.h" -#include "../scene_graph/OrientedLineRep.h" #include "../scene_graph/NodeGroup.h" #include "../scene_graph/NodeShape.h" -/* clang-format on */ +#include "../scene_graph/OrientedLineRep.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/stroke/TextStrokeRenderer.h b/source/blender/freestyle/intern/stroke/TextStrokeRenderer.h index 4669067c3f5..c6497aba808 100644 --- a/source/blender/freestyle/intern/stroke/TextStrokeRenderer.h +++ b/source/blender/freestyle/intern/stroke/TextStrokeRenderer.h @@ -34,11 +34,11 @@ #ifndef TEXTSTROKERENDERER_H #define TEXTSTROKERENDERER_H -/* clang-format off */ +#include + #include "StrokeRenderer.h" + #include "../system/FreestyleConfig.h" -#include -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h index 785bc0f4330..4bc6ba9db38 100644 --- a/source/blender/freestyle/intern/system/PythonInterpreter.h +++ b/source/blender/freestyle/intern/system/PythonInterpreter.h @@ -22,15 +22,14 @@ * \brief Python Interpreter */ -/* clang-format off */ #include extern "C" { #include } -#include "StringUtils.h" #include "Interpreter.h" +#include "StringUtils.h" #include "MEM_guardedalloc.h" @@ -49,7 +48,6 @@ extern "C" { #include "bpy_capi_utils.h" } -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/system/StringUtils.cpp b/source/blender/freestyle/intern/system/StringUtils.cpp index cd85aaaa5ff..90210f33a25 100644 --- a/source/blender/freestyle/intern/system/StringUtils.cpp +++ b/source/blender/freestyle/intern/system/StringUtils.cpp @@ -19,12 +19,10 @@ * \brief String utilities */ -/* clang-format off */ // soc #include -#include "FreestyleConfig.h" #include "StringUtils.h" -/* clang-format on */ +#include "FreestyleConfig.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/system/StringUtils.h b/source/blender/freestyle/intern/system/StringUtils.h index 16944e47335..aeacddd64c8 100644 --- a/source/blender/freestyle/intern/system/StringUtils.h +++ b/source/blender/freestyle/intern/system/StringUtils.h @@ -22,7 +22,6 @@ * \brief String utilities */ -/* clang-format off */ #include #include #include @@ -30,10 +29,9 @@ #include extern "C" { -#include "BLI_string.h" #include "BLI_path_util.h" +#include "BLI_string.h" } -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/view_map/GridDensityProvider.h b/source/blender/freestyle/intern/view_map/GridDensityProvider.h index 26b76006686..290d5b0cfba 100644 --- a/source/blender/freestyle/intern/view_map/GridDensityProvider.h +++ b/source/blender/freestyle/intern/view_map/GridDensityProvider.h @@ -22,10 +22,9 @@ * \brief Class to define a cell grid surrounding the projected image of a scene */ -/* clang-format off */ -#include #include #include +#include #include "AutoPtrHelper.h" #include "OccluderSource.h" @@ -37,7 +36,6 @@ #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp index 2c7560259fe..46d4389ea83 100644 --- a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp +++ b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp @@ -20,9 +20,8 @@ * implies that this geom engine has as member data the viewpoint, transformations, projections... */ -/* clang-format off */ -#include #include +#include #include "Silhouette.h" #include "SilhouetteGeomEngine.h" @@ -30,7 +29,6 @@ #include "../geometry/GeomUtils.h" #include "BKE_global.h" -/* clang-format on */ using namespace std; diff --git a/source/blender/freestyle/intern/view_map/SphericalGrid.h b/source/blender/freestyle/intern/view_map/SphericalGrid.h index 3c1ca3b5992..e9074580fb9 100644 --- a/source/blender/freestyle/intern/view_map/SphericalGrid.h +++ b/source/blender/freestyle/intern/view_map/SphericalGrid.h @@ -24,7 +24,6 @@ #define SPHERICAL_GRID_LOGGING 0 -/* clang-format off */ // I would like to avoid using deque because including ViewMap.h and or separately // results in redefinitions of identifiers. ViewMap.h already includes so it should be a // safe fall-back. @@ -35,9 +34,9 @@ #include "OccluderSource.h" #include "ViewMap.h" -#include "../geometry/Polygon.h" #include "../geometry/BBox.h" #include "../geometry/GridHelpers.h" +#include "../geometry/Polygon.h" #include "../system/PointerSequence.h" @@ -48,7 +47,6 @@ #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp index fd8f7958e83..a6a72bfa314 100644 --- a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp +++ b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp @@ -20,7 +20,6 @@ * to. */ -/* clang-format off */ #include #include "Silhouette.h" @@ -28,8 +27,8 @@ #include "../geometry/Geom.h" -#include "../image/ImagePyramid.h" #include "../image/Image.h" +#include "../image/ImagePyramid.h" #include "BKE_global.h" #include "BLI_math.h" @@ -38,7 +37,6 @@ extern "C" { #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" } -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/view_map/ViewMap.cpp b/source/blender/freestyle/intern/view_map/ViewMap.cpp index 5ea28e4ac41..47c6c3a1f6a 100644 --- a/source/blender/freestyle/intern/view_map/ViewMap.cpp +++ b/source/blender/freestyle/intern/view_map/ViewMap.cpp @@ -19,15 +19,13 @@ * \brief Classes to define a View Map (ViewVertex, ViewEdge, etc.) */ -/* clang-format off */ #include #include "ViewMap.h" -#include "ViewMapIterators.h" #include "ViewMapAdvancedIterators.h" +#include "ViewMapIterators.h" #include "../geometry/GeomUtils.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp index 681237399a8..40ab3ada777 100644 --- a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp +++ b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp @@ -19,11 +19,10 @@ * \brief Class to build silhouette edges from a Winged-Edge structure */ -/* clang-format off */ #include #include -#include #include +#include #include "FRS_freestyle.h" @@ -34,13 +33,12 @@ #include "SphericalGrid.h" #include "ViewMapBuilder.h" -#include "../geometry/GridHelpers.h" #include "../geometry/GeomUtils.h" +#include "../geometry/GridHelpers.h" #include "../winged_edge/WFillGrid.h" #include "BKE_global.h" -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h index 33ef6858541..b6bf51618d8 100644 --- a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h +++ b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h @@ -22,13 +22,12 @@ * \brief Class to build a Node Tree designed to be displayed from a Silhouette View Map structure. */ -/* clang-format off */ #include "Silhouette.h" #include "ViewMap.h" #include "../scene_graph/LineRep.h" -#include "../scene_graph/NodeShape.h" #include "../scene_graph/NodeGroup.h" +#include "../scene_graph/NodeShape.h" #include "../scene_graph/OrientedLineRep.h" #include "../scene_graph/VertexRep.h" @@ -37,7 +36,6 @@ #ifdef WITH_CXX_GUARDEDALLOC # include "MEM_guardedalloc.h" #endif -/* clang-format on */ namespace Freestyle { diff --git a/source/blender/freestyle/intern/winged_edge/WFillGrid.cpp b/source/blender/freestyle/intern/winged_edge/WFillGrid.cpp index b6dfb183d0f..f54b54f5a3a 100644 --- a/source/blender/freestyle/intern/winged_edge/WFillGrid.cpp +++ b/source/blender/freestyle/intern/winged_edge/WFillGrid.cpp @@ -19,10 +19,8 @@ * \brief Class to fill in a grid from a SceneGraph (uses only the WingedEdge structures) */ -/* clang-format off */ -#include "WEdge.h" #include "WFillGrid.h" -/* clang-format on */ +#include "WEdge.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/winged_edge/WSFillGrid.cpp b/source/blender/freestyle/intern/winged_edge/WSFillGrid.cpp index 2fa9e51fa7f..e1cb1c29f63 100644 --- a/source/blender/freestyle/intern/winged_edge/WSFillGrid.cpp +++ b/source/blender/freestyle/intern/winged_edge/WSFillGrid.cpp @@ -19,10 +19,8 @@ * \brief Class to fill in a grid from a SceneGraph (uses only the WingedEdge structures) */ -/* clang-format off */ -#include "WEdge.h" #include "WSFillGrid.h" -/* clang-format on */ +#include "WEdge.h" namespace Freestyle { diff --git a/source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp b/source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp index e6062a605ba..9be3da4420b 100644 --- a/source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp +++ b/source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp @@ -20,10 +20,8 @@ * info (silhouette etc...)) structure from a polygonal model */ -/* clang-format off */ -#include "WXEdge.h" #include "WXEdgeBuilder.h" -/* clang-format on */ +#include "WXEdge.h" namespace Freestyle { -- cgit v1.2.3