mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
uncrustify: empty body brackets
This commit is contained in:
parent
ea4aa1e178
commit
8b6a6f5f10
@ -23,6 +23,7 @@ nl_brace_else = add # "} \n else" vs "} else"
|
||||
nl_func_var_def_blk = 1
|
||||
nl_fcall_brace = remove # "list_for_each() {" vs "list_for_each()\n{"
|
||||
nl_fdef_brace = add # "int foo() {" vs "int foo()\n{"
|
||||
nl_collapse_empty_body = true # set while(){\n} to while(){}
|
||||
|
||||
#
|
||||
# Source code modifications
|
||||
@ -30,6 +31,9 @@ nl_fdef_brace = add # "int foo() {" vs "int foo()\n{"
|
||||
|
||||
mod_paren_on_return = ignore # "return 1;" vs "return (1);"
|
||||
mod_full_brace_if = add # "if() { } else { }" vs "if() else"
|
||||
mod_full_brace_while = force # force while(); to while(){ \n ; }
|
||||
mod_full_brace_for = force # force for(); to for(){ \n ; }
|
||||
mod_remove_extra_semicolon = true # remove superfluous semicolons.
|
||||
|
||||
#
|
||||
# inter-character spacing options
|
||||
@ -57,6 +61,7 @@ sp_between_ptr_star = remove # ignore/add/remove/force
|
||||
sp_inside_paren = remove # remove spaces inside parens
|
||||
sp_paren_paren = remove # remove spaces between nested parens
|
||||
sp_inside_sparen = remove # remove spaces inside parens for if, while and the like
|
||||
sp_inside_braces_empty = remove # force while(){ } to while(){}
|
||||
|
||||
#
|
||||
# Aligning stuff
|
||||
|
Loading…
Reference in New Issue
Block a user