[Bf-blender-cvs] [49e4182b6c9] master: ClangFormat: add comments to ignore formatting

Campbell Barton noreply at git.blender.org
Tue Apr 16 17:03:47 CEST 2019


Commit: 49e4182b6c9f3c78fe54b66170e992fb02e2c59a
Author: Campbell Barton
Date:   Tue Apr 16 17:02:52 2019 +0200
Branches: master
https://developer.blender.org/rB49e4182b6c9f3c78fe54b66170e992fb02e2c59a

ClangFormat: add comments to ignore formatting

===================================================================

M	source/blender/blenkernel/intern/unit.c

===================================================================

diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c
index 25f3a57791e..5c9be274920 100644
--- a/source/blender/blenkernel/intern/unit.c
+++ b/source/blender/blenkernel/intern/unit.c
@@ -125,6 +125,9 @@ typedef struct bUnitCollection {
 	int length;
 } bUnitCollection;
 
+/* Keep table lignment. */
+/* clang-format off */
+
 #define UNIT_COLLECTION_LENGTH(def) (sizeof(def) / sizeof(bUnitDef) - 1)
 #define NULL_UNIT {NULL, NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 
@@ -329,7 +332,7 @@ static const struct bUnitCollection *bUnitSystems[][B_UNIT_TYPE_TOT] = {
 	{NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
 };
 
-
+/* clang-format on*/
 
 /* internal, has some option not exposed */
 static const bUnitCollection *unit_get_system(int system, int type)



More information about the Bf-blender-cvs mailing list