From 25a0c9356ddffe986f2b7a028a41661635d7a4bb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Nov 2014 19:07:01 +0100 Subject: [PATCH] Uncrustify: Force space around else braces --- .uncrustify.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.uncrustify.cfg b/.uncrustify.cfg index 7773fb00..c956d5db 100644 --- a/.uncrustify.cfg +++ b/.uncrustify.cfg @@ -1,7 +1,7 @@ # Ambrevar C-style # Inspired by K&R and Go, with function opening brace on the same line. -# We enforce some sane properties, such as UTF-8, LF newlines +# We enforce some sane properties, such as UTF-8 and LF newlines. # No alignment, tab-indented. ################################################################################ @@ -100,6 +100,8 @@ sp_func_def_paren = remove # "int foo () {" -> "int foo() {" sp_func_proto_paren = remove # "int foo ();" -> "int foo();" sp_func_call_paren = remove # "foo (" -> "foo(" sp_return_paren = remove # "return (1);" -> "return(1);" +sp_else_brace = force # "else{" -> "else {" +sp_brace_else = force # "}else" -> "} else" # Add or remove space before pointer star '*' sp_before_ptr_star = force # ignore/add/remove/force