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
This commit is contained in:
@@ -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);
|
||||
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__ */
|
||||
#endif /* __MATHUTILS_VECTOR_H__ */
|
||||
|
Reference in New Issue
Block a user