Skip to content

Commit 292c554

Browse files
committed
build UPDATE uncrustify version 0.76
1 parent 0c0239c commit 292c554

File tree

7 files changed

+115
-13
lines changed

7 files changed

+115
-13
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ if(ENABLE_COVERAGE)
194194
endif()
195195

196196
if ("${BUILD_TYPE_UPPER}" STREQUAL "DEBUG")
197-
source_format_enable(0.75)
197+
source_format_enable(0.76)
198198
endif()
199199

200200
if("${BUILD_TYPE_UPPER}" STREQUAL "DOCONLY")

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ nc_getpwuid(uid_t uid, struct passwd *pwd_buf, char **buf, size_t *buf_size)
12031203
} while (ret && (ret == ERANGE));
12041204

12051205
if (ret) {
1206-
ERR(NULL, "Retrieving UID \"%lu\" passwd entry failed (%s).", (unsigned long int)uid, strerror(ret));
1206+
ERR(NULL, "Retrieving UID \"%lu\" passwd entry failed (%s).", (unsigned long)uid, strerror(ret));
12071207
}
12081208
return pwd;
12091209
}

src/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ nc_recv_client_hello_io(struct nc_session *session)
13991399
struct lyd_node_opaq *node;
14001400
int r, ver = -1, flag = 0;
14011401
char *str;
1402-
long long int id;
1402+
long long id;
14031403
NC_MSG_TYPE rc = NC_MSG_HELLO;
14041404

14051405
r = nc_read_msg_poll_io(session, NC_CLIENT_HELLO_TIMEOUT * 1000, &msg);

src/session_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ nc_client_context_free(void *ptr)
112112

113113
#if defined (NC_ENABLED_SSH) || defined (NC_ENABLED_TLS)
114114
int i;
115+
115116
for (i = 0; i < c->opts.ch_bind_count; ++i) {
116117
close(c->opts.ch_binds[i].sock);
117118
free((char *)c->opts.ch_binds[i].address);

src/session_client_ch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void nc_client_ssh_ch_set_auth_hostkey_check_clb(int (*auth_hostkey_check)(const
8888
*/
8989
void nc_client_ssh_ch_get_auth_hostkey_check_clb(int (**auth_hostkey_check)(const char *hostname, ssh_session session, void *priv),
9090
void **priv);
91+
9192
/**
9293
* @brief Set SSH Call Home password authentication callback.
9394
*

src/session_server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,6 +1945,7 @@ nc_get_uid(int sock, uid_t *uid)
19451945
#ifdef SO_PEERCRED
19461946
struct ucred ucred;
19471947
socklen_t len;
1948+
19481949
len = sizeof(ucred);
19491950
ret = getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &len);
19501951
if (!ret) {
@@ -1967,6 +1968,7 @@ nc_accept_unix(struct nc_session *session, int sock)
19671968
#if defined (SO_PEERCRED) || defined (HAVE_GETPEEREID)
19681969
struct passwd *pw, pw_buf;
19691970
char *username;
1971+
19701972
session->ti_type = NC_TI_UNIX;
19711973
uid_t uid = 0;
19721974
char *buf = NULL;

uncrustify.cfg

Lines changed: 108 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Uncrustify-0.71.0_f
1+
# Uncrustify-0.76.0_f
22

33
#
44
# General options
@@ -1539,9 +1539,15 @@ donot_indent_func_def_close_paren = false # true/false
15391539
# Newline adding and removing options
15401540
#
15411541

1542-
# Whether to collapse empty blocks between '{' and '}'.
1542+
# Whether to collapse empty blocks between '{' and '}' except for functions.
1543+
# Use nl_collapse_empty_body_functions to specify how empty function braces
1544+
# should be formatted.
15431545
nl_collapse_empty_body = true # true/false
15441546

1547+
# Whether to collapse empty blocks between '{' and '}' for functions only.
1548+
# If true, overrides nl_inside_empty_func.
1549+
nl_collapse_empty_body_functions = false # true/false
1550+
15451551
# Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
15461552
nl_assign_leave_one_liners = true # true/false
15471553

@@ -1994,6 +2000,12 @@ nl_template_end = false # true/false
19942000
# See nl_oc_msg_leave_one_liner.
19952001
nl_oc_msg_args = false # true/false
19962002

2003+
# (OC) Minimum number of Objective-C message parameters before applying nl_oc_msg_args.
2004+
nl_oc_msg_args_min_params = 0 # unsigned number
2005+
2006+
# (OC) Max code width of Objective-C message before applying nl_oc_msg_args.
2007+
nl_oc_msg_args_max_code_width = 0 # unsigned number
2008+
19972009
# Add or remove newline between function signature and '{'.
19982010
nl_fdef_brace = force # ignore/add/remove/force
19992011

@@ -2007,6 +2019,9 @@ nl_cpp_ldef_brace = ignore # ignore/add/remove/force
20072019
# Add or remove newline between 'return' and the return expression.
20082020
nl_return_expr = remove # ignore/add/remove/force
20092021

2022+
# Add or remove newline between 'throw' and the throw expression.
2023+
nl_throw_expr = ignore # ignore/add/remove/force/not_defined
2024+
20102025
# Whether to add a newline after semicolons, except in 'for' statements.
20112026
nl_after_semicolon = false # true/false
20122027

@@ -2252,12 +2267,6 @@ nl_after_func_body_class = 2 # unsigned number
22522267
# Overrides nl_after_func_body and nl_after_func_body_class.
22532268
nl_after_func_body_one_liner = 2 # unsigned number
22542269

2255-
# The number of blank lines after a block of variable definitions at the top
2256-
# of a function body.
2257-
#
2258-
# 0: No change (default).
2259-
nl_func_var_def_blk = 1 # unsigned number
2260-
22612270
# The number of newlines before a block of typedefs. If nl_after_access_spec
22622271
# is non-zero, that option takes precedence.
22632272
#
@@ -2274,6 +2283,15 @@ nl_typedef_blk_end = 1 # unsigned number
22742283
# 0: No change (default).
22752284
nl_typedef_blk_in = 0 # unsigned number
22762285

2286+
# The minimum number of blank lines after a block of variable definitions
2287+
# at the top of a function body. If any preprocessor directives appear
2288+
# between the opening brace of the function and the variable block, then
2289+
# it is considered as not at the top of the function.Newlines are added
2290+
# before trailing preprocessor directives, if any exist.
2291+
#
2292+
# 0: No change (default).
2293+
nl_var_def_blk_end_func_top = 1 # unsigned number
2294+
22772295
# The number of newlines before a block of variable definitions not at the top
22782296
# of a function body. If nl_after_access_spec is non-zero, that option takes
22792297
# precedence.
@@ -3075,6 +3093,9 @@ mod_full_brace_nl_block_rem_mlcond = false # true/false
30753093
# Add or remove unnecessary parenthesis on 'return' statement.
30763094
mod_paren_on_return = remove # ignore/add/remove/force
30773095

3096+
# Add or remove unnecessary parentheses on 'throw' statement.
3097+
mod_paren_on_throw = ignore # ignore/add/remove/force/not_defined
3098+
30783099
# (Pawn) Whether to change optional semicolons to real semicolons.
30793100
mod_pawn_semicolon = false # true/false
30803101

@@ -3172,6 +3193,49 @@ mod_remove_empty_return = true # true/false
31723193
# Add or remove the comma after the last value of an enumeration.
31733194
mod_enum_last_comma = remove # ignore/add/remove/force
31743195

3196+
# Syntax to use for infinite loops.
3197+
#
3198+
# 0: Leave syntax alone (default)
3199+
# 1: Rewrite as `for(;;)`
3200+
# 2: Rewrite as `while(true)`
3201+
# 3: Rewrite as `do`...`while(true);`
3202+
# 4: Rewrite as `while(1)`
3203+
# 5: Rewrite as `do`...`while(1);`
3204+
#
3205+
# Infinite loops that do not already match one of these syntaxes are ignored.
3206+
# Other options that affect loop formatting will be applied after transforming
3207+
# the syntax.
3208+
mod_infinite_loop = 0 # unsigned number
3209+
3210+
# Add or remove the 'int' keyword in 'int short'.
3211+
mod_int_short = remove # ignore/add/remove/force/not_defined
3212+
3213+
# Add or remove the 'int' keyword in 'short int'.
3214+
mod_short_int = remove # ignore/add/remove/force/not_defined
3215+
3216+
# Add or remove the 'int' keyword in 'int long'.
3217+
mod_int_long = remove # ignore/add/remove/force/not_defined
3218+
3219+
# Add or remove the 'int' keyword in 'long int'.
3220+
mod_long_int = remove # ignore/add/remove/force/not_defined
3221+
3222+
# Add or remove the 'int' keyword in 'int signed'.
3223+
mod_int_signed = ignore # ignore/add/remove/force/not_defined
3224+
3225+
# Add or remove the 'int' keyword in 'signed int'.
3226+
mod_signed_int = ignore # ignore/add/remove/force/not_defined
3227+
3228+
# Add or remove the 'int' keyword in 'int unsigned'.
3229+
mod_int_unsigned = ignore # ignore/add/remove/force/not_defined
3230+
3231+
# Add or remove the 'int' keyword in 'unsigned int'.
3232+
mod_unsigned_int = ignore # ignore/add/remove/force/not_defined
3233+
3234+
# If there is a situation where mod_int_* and mod_*_int would result in
3235+
# multiple int keywords, whether to keep the rightmost int (the default) or the
3236+
# leftmost int.
3237+
mod_int_prefer_int_on_left = false # true/false
3238+
31753239
# (OC) Whether to organize the properties. If true, properties will be
31763240
# rearranged according to the mod_sort_oc_property_*_weight factors.
31773241
mod_sort_oc_properties = false # true/false
@@ -3203,6 +3267,16 @@ mod_sort_oc_property_nullability_weight = 0 # number
32033267
# Preprocessor options
32043268
#
32053269

3270+
# How to use tabs when indenting preprocessor code.
3271+
#
3272+
# -1: Use 'indent_with_tabs' setting (default)
3273+
# 0: Spaces only
3274+
# 1: Indent with tabs to brace level, align with spaces
3275+
# 2: Indent and align with tabs, using spaces when not on a tabstop
3276+
#
3277+
# Default: -1
3278+
pp_indent_with_tabs = 0 # number
3279+
32063280
# Add or remove indentation of preprocessor directives inside #if blocks
32073281
# at brace level 0 (file-level).
32083282
pp_indent = ignore # ignore/add/remove/force
@@ -3223,8 +3297,8 @@ pp_indent_at_level0 = false # true/false
32233297
# Default: 1
32243298
pp_indent_count = 0 # unsigned number
32253299

3226-
# Add or remove space after # based on pp_level of #if blocks.
3227-
pp_space = ignore # ignore/add/remove/force
3300+
# Add or remove space after # based on pp level of #if blocks.
3301+
pp_space_after = ignore # ignore/add/remove/force/not_defined
32283302

32293303
# Sets the number of spaces per level added with pp_space.
32303304
pp_space_count = 0 # unsigned number
@@ -3259,6 +3333,18 @@ pp_include_at_level = false # true/false
32593333
# Whether to ignore the '#define' body while formatting.
32603334
pp_ignore_define_body = true # true/false
32613335

3336+
# An offset value that controls the indentation of the body of a multiline #define.
3337+
# 'body' refers to all the lines of a multiline #define except the first line.
3338+
# Requires 'pp_ignore_define_body = false'.
3339+
#
3340+
# <0: Absolute column: the body indentation starts off at the specified column
3341+
# (ex. -3 ==> the body is indented starting from column 3)
3342+
# >=0: Relative to the column of the '#' of '#define'
3343+
# (ex. 3 ==> the body is indented starting 3 columns at the right of '#')
3344+
#
3345+
# Default: 8
3346+
pp_multiline_define_body_indent = 8 # number
3347+
32623348
# Whether to indent case statements between #if, #else, and #endif.
32633349
# Only applies to the indent of the preprocesser that the case statements
32643350
# directly inside of.
@@ -3412,6 +3498,18 @@ debug_timeout = 0 # number
34123498
# 0: do not truncate.
34133499
debug_truncate = 0 # unsigned number
34143500

3501+
# sort (or not) the tracking info.
3502+
#
3503+
# Default: true
3504+
debug_sort_the_tracks = true # true/false
3505+
3506+
# decode (or not) the flags as a new line.
3507+
# only if the -p option is set.
3508+
debug_decode_the_flags = false # true/false
3509+
3510+
# insert the number of the line at the beginning of each line
3511+
set_numbering_for_html_output = false # true/false
3512+
34153513
# Meaning of the settings:
34163514
# Ignore - do not do any changes
34173515
# Add - makes sure there is 1 or more space/brace/newline/etc

0 commit comments

Comments
 (0)