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_Vector.h | 40 ++++++++++------------ 1 file changed, 19 insertions(+), 21 deletions(-) (limited to 'source/blender/python/mathutils/mathutils_Vector.h') diff --git a/source/blender/python/mathutils/mathutils_Vector.h b/source/blender/python/mathutils/mathutils_Vector.h index 7ebc3fbf1d6..f75702bc54c 100644 --- a/source/blender/python/mathutils/mathutils_Vector.h +++ b/source/blender/python/mathutils/mathutils_Vector.h @@ -18,7 +18,6 @@ * \ingroup pymathutils */ - #ifndef __MATHUTILS_VECTOR_H__ #define __MATHUTILS_VECTOR_H__ @@ -28,27 +27,26 @@ extern PyTypeObject vector_Type; #define VectorObject_CheckExact(v) (Py_TYPE(v) == &vector_Type) typedef struct { - BASE_MATH_MEMBERS(vec); + BASE_MATH_MEMBERS(vec); - int size; /* vec size 2 or more */ + int size; /* vec size 2 or more */ } VectorObject; /*prototypes*/ -PyObject *Vector_CreatePyObject( - const float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT; -PyObject *Vector_CreatePyObject_wrap( - float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -PyObject *Vector_CreatePyObject_cb( - PyObject *user, int size, - unsigned char cb_type, unsigned char subtype - ) ATTR_WARN_UNUSED_RESULT; -PyObject *Vector_CreatePyObject_alloc( - float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); - -#endif /* __MATHUTILS_VECTOR_H__ */ +PyObject *Vector_CreatePyObject(const float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT; +PyObject *Vector_CreatePyObject_wrap(float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); +PyObject *Vector_CreatePyObject_cb(PyObject *user, + int size, + unsigned char cb_type, + unsigned char subtype) ATTR_WARN_UNUSED_RESULT; +PyObject *Vector_CreatePyObject_alloc(float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); + +#endif /* __MATHUTILS_VECTOR_H__ */ -- cgit v1.2.3