Deactive some uncrustify settings

This only deactivates some of the more heavy-handed features. All files have
been formatted with the new settings, which seems to have only affected lines
which were not formatted before.
This commit is contained in:
Esa Korhonen
2018-09-12 17:33:23 +03:00
parent 4e41978069
commit 4ba0112668
5 changed files with 30 additions and 22 deletions

View File

@ -95,8 +95,10 @@ int main(int argc, char* argv[])
Test->set_timeout(15); Test->set_timeout(15);
Test->add_result(mysql_change_user(Test->maxscales->conn_rwsplit[0], "user", "pass2", (char*) "test"), Test->add_result(mysql_change_user(Test->maxscales->conn_rwsplit[0], "user", "pass2", (char*) "test"),
"change_user failed! %s", mysql_error(Test->maxscales->conn_rwsplit[0])); "change_user failed! %s", mysql_error(Test->maxscales->conn_rwsplit[0]));
Test->add_result(mysql_change_user(Test->maxscales->conn_rwsplit[0], Test->maxscales->user_name, Test->maxscales->password, Test->add_result(mysql_change_user(Test->maxscales->conn_rwsplit[0], Test->maxscales->user_name,
(char *) "test"), "change_user failed! %s", mysql_error(Test->maxscales->conn_rwsplit[0])); Test->maxscales->password,
(char*) "test"), "change_user failed! %s",
mysql_error(Test->maxscales->conn_rwsplit[0]));
} }
Test->tprintf("Waiting for all threads to finish"); Test->tprintf("Waiting for all threads to finish");

View File

@ -80,13 +80,19 @@ void* query_thread1(void* ptr)
"Error opening RWsplit conn, thread num is %d, iteration %li, error is: %s\n", "Error opening RWsplit conn, thread num is %d, iteration %li, error is: %s\n",
data->thread_id, data->i, mysql_error(conn1)); data->thread_id, data->i, mysql_error(conn1));
MYSQL* conn2 = data->Test->maxscales->open_readconn_master_connection(0); MYSQL* conn2 = data->Test->maxscales->open_readconn_master_connection(0);
data->Test->add_result(mysql_errno(conn2), data->Test->add_result(mysql_errno(
"Error opening ReadConn master conn, thread num is %d, iteration %li, error is: %s\n", data->thread_id, conn2),
data->i, mysql_error(conn2)); "Error opening ReadConn master conn, thread num is %d, iteration %li, error is: %s\n",
data->thread_id,
data->i,
mysql_error(conn2));
MYSQL* conn3 = data->Test->maxscales->open_readconn_slave_connection(0); MYSQL* conn3 = data->Test->maxscales->open_readconn_slave_connection(0);
data->Test->add_result(mysql_errno(conn3), data->Test->add_result(mysql_errno(
"Error opening ReadConn master conn, thread num is %d, iteration %li, error is: %s\n", data->thread_id, conn3),
data->i, mysql_error(conn3)); "Error opening ReadConn master conn, thread num is %d, iteration %li, error is: %s\n",
data->thread_id,
data->i,
mysql_error(conn3));
// USE test here is a hack to prevent Maxscale from failure; should be removed when fixed // USE test here is a hack to prevent Maxscale from failure; should be removed when fixed
if (conn1 != NULL) if (conn1 != NULL)
{ {

View File

@ -1115,10 +1115,10 @@ nl_func_decl_args = ignore # ignore/add/remove/force
nl_func_def_args = ignore # ignore/add/remove/force nl_func_def_args = ignore # ignore/add/remove/force
# Whether to add newline after each ',' in a function declaration if '(' and ')' are in different lines. # Whether to add newline after each ',' in a function declaration if '(' and ')' are in different lines.
nl_func_decl_args_multi_line = true # false/true nl_func_decl_args_multi_line = false # false/true
# Whether to add newline after each ',' in a function definition if '(' and ')' are in different lines. # Whether to add newline after each ',' in a function definition if '(' and ')' are in different lines.
nl_func_def_args_multi_line = true # false/true nl_func_def_args_multi_line = false # false/true
# Add or remove newline before the ')' in a function declaration. # Add or remove newline before the ')' in a function declaration.
nl_func_decl_end = ignore # ignore/add/remove/force nl_func_decl_end = ignore # ignore/add/remove/force
@ -1151,7 +1151,7 @@ nl_func_call_empty = remove # ignore/add/remove/force
nl_func_call_start_multi_line = false # false/true nl_func_call_start_multi_line = false # false/true
# Whether to add newline after each ',' in a function call if '(' and ')' are in different lines. # Whether to add newline after each ',' in a function call if '(' and ')' are in different lines.
nl_func_call_args_multi_line = true # false/true nl_func_call_args_multi_line = false # false/true
# Whether to add newline before ')' in a function call if '(' and ')' are in different lines. # Whether to add newline before ')' in a function call if '(' and ')' are in different lines.
nl_func_call_end_multi_line = false # false/true nl_func_call_end_multi_line = false # false/true
@ -1429,20 +1429,20 @@ nl_between_annotation = ignore # ignore/add/remove/force
# #
# The position of arithmetic operators in wrapped expressions. # The position of arithmetic operators in wrapped expressions.
pos_arith = lead # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force pos_arith = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of assignment in wrapped expressions. # The position of assignment in wrapped expressions.
# Do not affect '=' followed by '{'. # Do not affect '=' followed by '{'.
pos_assign = lead # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force pos_assign = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of boolean operators in wrapped expressions. # The position of boolean operators in wrapped expressions.
pos_bool = lead # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force pos_bool = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of comparison operators in wrapped expressions. # The position of comparison operators in wrapped expressions.
pos_compare = lead # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force pos_compare = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of conditional (b ? t : f) operators in wrapped expressions. # The position of conditional (b ? t : f) operators in wrapped expressions.
pos_conditional = lead # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force pos_conditional = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of the comma in wrapped expressions. # The position of the comma in wrapped expressions.
# nantti: found a bug here. If pos_comma=lead, and long functions are split (ls_func_split_full), comma goes to # nantti: found a bug here. If pos_comma=lead, and long functions are split (ls_func_split_full), comma goes to