ClangFormat: add comments to ignore formatting

This commit is contained in:
Campbell Barton 2019-04-16 17:02:52 +02:00
parent 24edd49818
commit 49e4182b6c
Notes: blender-bot 2023-02-14 10:18:56 +01:00
Referenced by issue #63698, Selecting Materials after creating a new file throws EXCEPTION_ACCESS_VIOLATION
1 changed files with 4 additions and 1 deletions

View File

@ -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)