From 2986bc1d6e5d89aa59e191f3b0e7eb0be7de42ba Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 16 Apr 2019 16:53:50 +0200 Subject: ClangFormat: add comments to ignore formatting --- source/blender/blenkernel/intern/idcode.c | 3 +++ source/blender/blenkernel/intern/unit.c | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/idcode.c b/source/blender/blenkernel/intern/idcode.c index 42864fa8350..5e37f586a2a 100644 --- a/source/blender/blenkernel/intern/idcode.c +++ b/source/blender/blenkernel/intern/idcode.c @@ -44,6 +44,8 @@ typedef struct { #define IDTYPE_FLAGS_ISLINKABLE (1 << 0) } IDType; +/* Keep alignment for readability. */ +/* clang-format off */ /** * When editing enusre that: * - Plural need to match rna_main.c's #MainCollectionDef. @@ -93,6 +95,7 @@ static IDType idtypes[] = { /** Keep last, not an ID exactly, only include for completeness */ {ID_LINK_PLACEHOLDER, "Link Placeholder", "link_placeholders", BLT_I18NCONTEXT_ID_ID, 0}, /* plural is fake */ }; +/* clang-format on */ /* -1 for ID_LINK_PLACEHOLDER */ BLI_STATIC_ASSERT((ARRAY_SIZE(idtypes) - 1 == MAX_LIBARRAY), "Missing IDType"); diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 2d2db5fea1e..25f3a57791e 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -39,6 +39,9 @@ /* no BKE or DNA includes! */ +/* Keep alignment. */ +/* clang-format off */ + #define TEMP_STR_SIZE 256 #define SEP_CHR '#' @@ -77,6 +80,8 @@ #define UN_SC_LB 0.45359237f #define UN_SC_OZ 0.028349523125f +/* clang-format on */ + /* define a single unit */ typedef struct bUnitDef { const char *name; -- cgit v1.2.3