Skip to content

Commit 58b0ecf

Browse files
yashinashif
authored andcommitted
uncrustify: Add a rule to remove space inside function argument
Our code base doesn't have spaces both after the opening parenthesis and the closing parenthesis. "func( arg )" vs "func(arg)". This patch adds the rule to remove the spaces. Signed-off-by: Yasushi SHOJI <y-shoji@ispace-inc.com>
1 parent deaab90 commit 58b0ecf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.uncrustify.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ sp_after_comma = add
5050
sp_func_def_paren = remove # "int foo (){" vs "int foo(){"
5151
sp_func_call_paren = remove # "foo (" vs "foo("
5252
sp_func_proto_paren = remove # "int foo ();" vs "int foo();"
53+
sp_inside_fparen = remove # "func( arg )" vs "func(arg)"
5354
sp_else_brace = add # ignore/add/remove/force
5455
sp_before_ptr_star = add # ignore/add/remove/force
5556
sp_after_ptr_star = remove # ignore/add/remove/force

0 commit comments

Comments
 (0)