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 17:53:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-16 17:57:47 +0300
commit2986bc1d6e5d89aa59e191f3b0e7eb0be7de42ba (patch)
treeca9e73673f9022f464f651bbc320f7ab37ea8574 /source/blender/blenkernel
parente0fe7199971728dfa4e84cd3c63e17dde48d0c7a (diff)
ClangFormat: add comments to ignore formatting
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/idcode.c3
-rw-r--r--source/blender/blenkernel/intern/unit.c5
2 files changed, 8 insertions, 0 deletions
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;