Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-16 18:02:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-16 18:03:11 +0300
commit49e4182b6c9f3c78fe54b66170e992fb02e2c59a (patch)
treee12299595a4468b1547580674a5e0acfe70df8ed /source/blender/blenkernel/intern/unit.c
parent24edd498182d28552f89f9b7adeaff7db3647948 (diff)
ClangFormat: add comments to ignore formatting
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r--source/blender/blenkernel/intern/unit.c5
1 files changed, 4 insertions, 1 deletions
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)