]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make uncrustify ignore newlines for enums
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Apr 2019 11:57:54 +0000 (13:57 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Apr 2019 11:57:54 +0000 (13:57 +0200)
Uncrustify doesn’t properly understand enums as return values and
ignoring newlines is an easy workaround.

misc/uncrustify.cfg

index adb8cfa07159e92764e04856f341241d0c0988cf..30cabd205dd04a2bf932e81259f11fc46a85bd53 100644 (file)
@@ -1012,7 +1012,7 @@ nl_var_def_blk_in               = 0        # unsigned number
 nl_fcall_brace                  = ignore   # ignore/add/remove/force
 
 # Add or remove newline between 'enum' and '{'.
-nl_enum_brace                   = remove   # ignore/add/remove/force
+nl_enum_brace                   = ignore   # ignore/add/remove/force
 
 # Add or remove newline between 'enum' and 'class'.
 nl_enum_class                   = ignore   # ignore/add/remove/force