[Bf-blender-cvs] [01d92a295bb] temp-clang-format: Turn clang-format off for idtypes table
Campbell Barton
noreply at git.blender.org
Tue Apr 16 10:01:51 CEST 2019
Commit: 01d92a295bb3908a6f4a6c00b3116ff009efb9e2
Author: Campbell Barton
Date: Tue Apr 16 10:01:25 2019 +0200
Branches: temp-clang-format
https://developer.blender.org/rB01d92a295bb3908a6f4a6c00b3116ff009efb9e2
Turn clang-format off for idtypes table
===================================================================
M source/blender/blenkernel/intern/idcode.c
===================================================================
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");
More information about the Bf-blender-cvs
mailing list