diff options
Diffstat (limited to 'contrib/uncrustify.cfg')
-rw-r--r-- | contrib/uncrustify.cfg | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/uncrustify.cfg b/contrib/uncrustify.cfg index f56c8e73..8c9df2c4 100644 --- a/contrib/uncrustify.cfg +++ b/contrib/uncrustify.cfg | |||
@@ -49,8 +49,12 @@ nl_assign_brace=remove | |||
49 | 49 | ||
50 | # No extra newlines that cause noisy diffs | 50 | # No extra newlines that cause noisy diffs |
51 | nl_start_of_file=remove | 51 | nl_start_of_file=remove |
52 | nl_after_func_proto = 2 | ||
53 | nl_after_func_body = 3 | ||
52 | # If there's no new line, it's not a text file! | 54 | # If there's no new line, it's not a text file! |
53 | nl_end_of_file=add | 55 | nl_end_of_file=add |
56 | nl_max_blank_in_func = 3 | ||
57 | nl_max = 3 | ||
54 | 58 | ||
55 | sp_inside_paren = remove | 59 | sp_inside_paren = remove |
56 | 60 | ||
@@ -69,6 +73,7 @@ sp_between_ptr_star = remove | |||
69 | sp_before_sparen = add | 73 | sp_before_sparen = add |
70 | 74 | ||
71 | sp_inside_fparen = remove | 75 | sp_inside_fparen = remove |
76 | sp_inside_sparen = remove | ||
72 | 77 | ||
73 | # add space before function call and decl: "foo (x)" | 78 | # add space before function call and decl: "foo (x)" |
74 | sp_func_call_paren = add | 79 | sp_func_call_paren = add |
@@ -76,3 +81,15 @@ sp_func_proto_paren = add | |||
76 | sp_func_proto_paren_empty = add | 81 | sp_func_proto_paren_empty = add |
77 | sp_func_def_paren = add | 82 | sp_func_def_paren = add |
78 | sp_func_def_paren_empty = add | 83 | sp_func_def_paren_empty = add |
84 | |||
85 | # We'd want it for "if ( (foo) || (bar) )", but not for "if (m())", | ||
86 | # so as uncrustify doesn't give exactly what we want => ignore | ||
87 | sp_paren_paren = ignore | ||
88 | sp_inside_paren = remove | ||
89 | sp_bool = force | ||
90 | |||
91 | nl_func_type_name = force | ||
92 | #nl_branch_else = add | ||
93 | nl_else_brace = add | ||
94 | nl_elseif_brace = add | ||
95 | nl_for_brace = add | ||