Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine")

This commit is contained in:
2023-05-02 08:42:26 +10:00
parent 391f86bc38
commit 6859bb6e67
1314 changed files with 9714 additions and 5571 deletions

View File

@@ -58,7 +58,8 @@ static bool idprop_ui_data_update_base(IDPropertyUIData *ui_data,
if (pyrna_enum_value_from_id(rna_enum_property_subtype_items,
rna_subtype,
&ui_data->rna_subtype,
"IDPropertyUIManager.update") == -1) {
"IDPropertyUIManager.update") == -1)
{
return false;
}
}
@@ -88,7 +89,8 @@ static bool idprop_ui_data_update_int_default(IDProperty *idprop,
int *new_default_array = (int *)MEM_malloc_arrayN(len, sizeof(int), __func__);
if (PyC_AsArray(
new_default_array, sizeof(int), default_value, len, &PyLong_Type, "ui_data_update") ==
-1) {
-1)
{
MEM_freeN(new_default_array);
return false;
}
@@ -130,7 +132,8 @@ static bool idprop_ui_data_update_int(IDProperty *idprop, PyObject *args, PyObje
&step,
&default_value,
&rna_subtype,
&description)) {
&description))
{
return false;
}
@@ -202,7 +205,8 @@ static bool idprop_ui_data_update_bool_default(IDProperty *idprop,
default_value,
len,
&PyBool_Type,
"ui_data_update") == -1) {
"ui_data_update") == -1)
{
MEM_freeN(new_default_array);
return false;
}
@@ -237,7 +241,8 @@ static bool idprop_ui_data_update_bool(IDProperty *idprop, PyObject *args, PyObj
(char **)kwlist,
&default_value,
&rna_subtype,
&description)) {
&description))
{
return false;
}
@@ -285,7 +290,8 @@ static bool idprop_ui_data_update_float_default(IDProperty *idprop,
default_value,
len,
&PyFloat_Type,
"ui_data_update") == -1) {
"ui_data_update") == -1)
{
MEM_freeN(new_default_array);
return false;
}
@@ -337,7 +343,8 @@ static bool idprop_ui_data_update_float(IDProperty *idprop, PyObject *args, PyOb
&precision,
&default_value,
&rna_subtype,
&description)) {
&description))
{
return false;
}
@@ -406,7 +413,8 @@ static bool idprop_ui_data_update_string(IDProperty *idprop, PyObject *args, PyO
(char **)kwlist,
&default_value,
&rna_subtype,
&description)) {
&description))
{
return false;
}
@@ -438,7 +446,8 @@ static bool idprop_ui_data_update_id(IDProperty *idprop, PyObject *args, PyObjec
const char *description = NULL;
const char *kwlist[] = {"subtype", "description", NULL};
if (!PyArg_ParseTupleAndKeywords(
args, kwargs, "|$zz:update", (char **)kwlist, &rna_subtype, &description)) {
args, kwargs, "|$zz:update", (char **)kwlist, &rna_subtype, &description))
{
return false;
}