From 58b0ecf78fd3e68c588a764666dbed9f7ac099ec Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Tue, 16 Oct 2018 15:05:09 +0900 Subject: [PATCH] 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 --- .uncrustify.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/.uncrustify.cfg b/.uncrustify.cfg index f07d1f718a5..60266300cee 100644 --- a/.uncrustify.cfg +++ b/.uncrustify.cfg @@ -50,6 +50,7 @@ sp_after_comma = add sp_func_def_paren = remove # "int foo (){" vs "int foo(){" sp_func_call_paren = remove # "foo (" vs "foo(" sp_func_proto_paren = remove # "int foo ();" vs "int foo();" +sp_inside_fparen = remove # "func( arg )" vs "func(arg)" sp_else_brace = add # ignore/add/remove/force sp_before_ptr_star = add # ignore/add/remove/force sp_after_ptr_star = remove # ignore/add/remove/force