]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
script: Enforce separate lines for function parameters
authorRay Strode <rstrode@redhat.com>
Mon, 4 Apr 2022 19:40:52 +0000 (15:40 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 4 Apr 2022 19:44:20 +0000 (15:44 -0400)
The moment it's possible to sneak in functions like:

static void
foo (int param1, int param2)
{
}

when the style requires parameters on separate lines.

This updates the uncrustify config to account for that.

scripts/default.cfg

index 17828b3329f1e18c4942359de32519dc8936f4ee..78df1718780d691d8b8a4655e889ffe52daf58d8 100644 (file)
@@ -23,6 +23,7 @@ nl_brace_while = remove # "} while" vs "} \n while" - cuddle while
 nl_brace_else = remove # "} else" vs "} \n else" - cuddle else
 sp_brace_else = force
 sp_else_brace = force
+nl_func_def_args = add
 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{"