From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: ClangFormat: apply to source, most of intern Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat --- source/blender/python/mathutils/mathutils_Color.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'source/blender/python/mathutils/mathutils_Color.h') diff --git a/source/blender/python/mathutils/mathutils_Color.h b/source/blender/python/mathutils/mathutils_Color.h index 6dc56f8aacb..51e1746ae74 100644 --- a/source/blender/python/mathutils/mathutils_Color.h +++ b/source/blender/python/mathutils/mathutils_Color.h @@ -18,7 +18,6 @@ * \ingroup pymathutils */ - #ifndef __MATHUTILS_COLOR_H__ #define __MATHUTILS_COLOR_H__ @@ -27,7 +26,7 @@ extern PyTypeObject color_Type; #define ColorObject_CheckExact(v) (Py_TYPE(v) == &color_Type) typedef struct { - BASE_MATH_MEMBERS(col); + BASE_MATH_MEMBERS(col); } ColorObject; /* struct data contains a pointer to the actual data that the @@ -36,17 +35,12 @@ typedef struct { * blender (stored in blend_data). This is an either/or struct not both*/ /* prototypes */ -PyObject *Color_CreatePyObject( - const float col[3], - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT; -PyObject *Color_CreatePyObject_wrap( - float col[3], - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -PyObject *Color_CreatePyObject_cb( - PyObject *cb_user, - unsigned char cb_type, unsigned char cb_subtype - ) ATTR_WARN_UNUSED_RESULT; +PyObject *Color_CreatePyObject(const float col[3], + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT; +PyObject *Color_CreatePyObject_wrap(float col[3], PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); +PyObject *Color_CreatePyObject_cb(PyObject *cb_user, + unsigned char cb_type, + unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT; #endif /* __MATHUTILS_COLOR_H__ */ -- cgit v1.2.3