From 8b6a6f5f1073062ab0ea3a761c5b68fa1968f28d Mon Sep 17 00:00:00 2001 From: Josarn Date: Mon, 28 May 2018 18:02:13 +0200 Subject: [PATCH] uncrustify: empty body brackets --- uncrustify-riot.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uncrustify-riot.cfg b/uncrustify-riot.cfg index d1a8bae14d..bff39035f8 100644 --- a/uncrustify-riot.cfg +++ b/uncrustify-riot.cfg @@ -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