Uncrustify: Force space around else braces

master
Pierre Neidhardt 2014-11-10 19:07:01 +01:00
parent 80651b53b1
commit 25a0c9356d
1 changed files with 3 additions and 1 deletions

View File

@ -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