annotate TOOLS/mp-uncrustify-style.cfg @ 33265:62c0471bcf8c

Free config. It isn't freed so far.
author ib
date Tue, 03 May 2011 13:19:39 +0000
parents a899bfef04c8
children 97eb01954e60
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32934
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1 # Uncrustify 0.57
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
2
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
3 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
4 ###### TODO/FIXME ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
5 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
6 ### - Align comments?
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
7 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
8 ### - New line after function
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
9 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
10 ### nl_after_func_body force one blank line after each function, but it should
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
11 ### not when surrounded with #ifdef:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
12 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
13 ### #ifdef CONFIG_DVDNAV
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
14 ### static void mp_dvdnav_context_free(MPContext *ctx)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
15 ### {
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
16 ### // [...]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
17 ### }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
18 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
19 ### #endif
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
20 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
21 ### void uninit_player(unsigned int mask)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
22 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
23
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
24 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
25 # General options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
26 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
27
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
28 # The type of line endings
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
29 newlines = lf # auto/lf/crlf/cr
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
30
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
31 # The original size of tabs in the input
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
32 input_tab_size = 8 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
33
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
34 # The size of tabs in the output (only used if align_with_tabs=true)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
35 output_tab_size = 8 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
36
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
37 # The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
38 string_escape_char = 92 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
39
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
40 # Alternate string escape char for Pawn. Only works right before the quote char.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
41 string_escape_char2 = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
42
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
43 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
44 # Indenting
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
45 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
46
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
47 # The number of columns to indent per level.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
48 # Usually 2, 3, 4, or 8.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
49 indent_columns = 4 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
50
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
51 # The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
52 # For FreeBSD, this is set to 4.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
53 indent_continue = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
54
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
55 # How to use tabs when indenting code
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
56 # 0=spaces only
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
57 # 1=indent with tabs to brace level, align with spaces
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
58 # 2=indent and align with tabs, using spaces when not on a tabstop
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
59 indent_with_tabs = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
60
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
61 # Comments that are not a brace level are indented with tabs on a tabstop.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
62 # Requires indent_with_tabs=2. If false, will use spaces.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
63 indent_cmt_with_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
64
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
65 # Whether to indent strings broken by '\' so that they line up
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
66 indent_align_string = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
67
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
68 # The number of spaces to indent multi-line XML strings.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
69 # Requires indent_align_string=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
70 indent_xml_string = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
71
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
72 # Spaces to indent '{' from level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
73 indent_brace = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
74
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
75 # Whether braces are indented to the body level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
76 indent_braces = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
77
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
78 # Disabled indenting function braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
79 indent_braces_no_func = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
80
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
81 # Disabled indenting class braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
82 indent_braces_no_class = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
83
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
84 # Disabled indenting struct braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
85 indent_braces_no_struct = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
86
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
87 # Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
88 indent_brace_parent = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
89
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
90 # Whether the 'namespace' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
91 indent_namespace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
92
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
93 # The number of spaces to indent a namespace block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
94 indent_namespace_level = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
95
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
96 # If the body of the namespace is longer than this number, it won't be indented.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
97 # Requires indent_namespace=true. Default=0 (no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
98 indent_namespace_limit = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
99
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
100 # Whether the 'extern "C"' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
101 indent_extern = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
102
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
103 # Whether the 'class' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
104 indent_class = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
105
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
106 # Whether to indent the stuff after a leading class colon
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
107 indent_class_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
108
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
109 # False=treat 'else\nif' as 'else if' for indenting purposes
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
110 # True=indent the 'if' one level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
111 indent_else_if = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
112
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
113 # Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
114 indent_var_def_blk = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
115
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
116 # Indent continued variable declarations instead of aligning.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
117 indent_var_def_cont = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
118
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
119 # True: indent continued function call parameters one indent level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
120 # False: align parameters under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
121 indent_func_call_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
122
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
123 # Same as indent_func_call_param, but for function defs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
124 indent_func_def_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
125
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
126 # Same as indent_func_call_param, but for function protos
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
127 indent_func_proto_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
128
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
129 # Same as indent_func_call_param, but for class declarations
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
130 indent_func_class_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
131
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
132 # Same as indent_func_call_param, but for class variable constructors
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
133 indent_func_ctor_var_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
134
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
135 # Same as indent_func_call_param, but for templates
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
136 indent_template_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
137
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
138 # Double the indent for indent_func_xxx_param options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
139 indent_func_param_double = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
140
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
141 # Indentation column for standalone 'const' function decl/proto qualifier
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
142 indent_func_const = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
143
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
144 # Indentation column for standalone 'throw' function decl/proto qualifier
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
145 indent_func_throw = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
146
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
147 # The number of spaces to indent a continued '->' or '.'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
148 # Usually set to 0, 1, or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
149 indent_member = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
150
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
151 # Spaces to indent single line ('//') comments on lines before code
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
152 indent_sing_line_comments = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
153
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
154 # If set, will indent trailing single line ('//') comments relative
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
155 # to the code instead of trying to keep the same absolute column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
156 indent_relative_single_line_comments = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
157
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
158 # Spaces to indent 'case' from 'switch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
159 # Usually 0 or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
160 indent_switch_case = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
161
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
162 # Spaces to shift the 'case' line, without affecting any other lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
163 # Usually 0.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
164 indent_case_shift = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
165
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
166 # Spaces to indent '{' from 'case'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
167 # By default, the brace will appear under the 'c' in case.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
168 # Usually set to 0 or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
169 indent_case_brace = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
170
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
171 # Whether to indent comments found in first column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
172 indent_col1_comment = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
173
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
174 # How to indent goto labels
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
175 # >0 : absolute column where 1 is the leftmost column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
176 # <=0 : subtract from brace indent
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
177 indent_label = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
178
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
179 # Same as indent_label, but for access specifiers that are followed by a colon
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
180 indent_access_spec = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
181
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
182 # Indent the code after an access specifier by one level.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
183 # If set, this option forces 'indent_access_spec=0'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
184 indent_access_spec_body = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
185
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
186 # If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
187 indent_paren_nl = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
188
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
189 # Controls the indent of a close paren after a newline.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
190 # 0: Indent to body level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
191 # 1: Align under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
192 # 2: Indent to the brace level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
193 indent_paren_close = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
194
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
195 # Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
196 indent_comma_paren = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
197
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
198 # Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
199 indent_bool_paren = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
200
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
201 # If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
202 indent_first_bool_expr = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
203
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
204 # If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
205 indent_square_nl = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
206
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
207 # Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
208 indent_preserve_sql = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
209
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
210 # Align continued statements at the '='. Default=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
211 # If FALSE or the '=' is followed by a newline, the next line is indent one tab.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
212 indent_align_assign = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
213
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
214 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
215 # Spacing options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
216 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
217
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
218 # Add or remove space around arithmetic operator '+', '-', '/', '*', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
219 sp_arith = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
220
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
221 # Add or remove space around assignment operator '=', '+=', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
222 sp_assign = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
223
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
224 # Add or remove space around assignment operator '=' in a prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
225 sp_assign_default = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
226
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
227 # Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
228 sp_before_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
229
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
230 # Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
231 sp_after_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
232
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
233 # Add or remove space around assignment '=' in enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
234 sp_enum_assign = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
235
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
236 # Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
237 sp_enum_before_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
238
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
239 # Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
240 sp_enum_after_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
241
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
242 # Add or remove space around preprocessor '##' concatenation operator. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
243 sp_pp_concat = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
244
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
245 # Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
246 sp_pp_stringify = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
247
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
248 # Add or remove space around boolean operators '&&' and '||'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
249 sp_bool = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
250
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
251 # Add or remove space around compare operator '<', '>', '==', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
252 sp_compare = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
253
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
254 # Add or remove space inside '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
255 sp_inside_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
256
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
257 # Add or remove space between nested parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
258 sp_paren_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
259
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
260 # Whether to balance spaces inside nested parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
261 sp_balance_nested_parens = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
262
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
263 # Add or remove space between ')' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
264 sp_paren_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
265
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
266 # Add or remove space before pointer star '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
267 sp_before_ptr_star = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
268
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
269 # Add or remove space before pointer star '*' that isn't followed by a variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
270 # If set to 'ignore', sp_before_ptr_star is used instead.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
271 sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
272
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
273 # Add or remove space between pointer stars '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
274 sp_between_ptr_star = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
275
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
276 # Add or remove space after pointer star '*', if followed by a word.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
277 sp_after_ptr_star = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
278
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
279 # Add or remove space after a pointer star '*', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
280 sp_after_ptr_star_func = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
281
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
282 # Add or remove space before a pointer star '*', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
283 sp_before_ptr_star_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
284
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
285 # Add or remove space before a reference sign '&'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
286 sp_before_byref = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
287
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
288 # Add or remove space before a reference sign '&' that isn't followed by a variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
289 # If set to 'ignore', sp_before_byref is used instead.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
290 sp_before_unnamed_byref = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
291
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
292 # Add or remove space after reference sign '&', if followed by a word.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
293 sp_after_byref = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
294
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
295 # Add or remove space after a reference sign '&', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
296 sp_after_byref_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
297
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
298 # Add or remove space before a reference sign '&', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
299 sp_before_byref_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
300
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
301 # Add or remove space between type and word. Default=Force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
302 sp_after_type = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
303
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
304 # Add or remove space in 'template <' vs 'template<'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
305 # If set to ignore, sp_before_angle is used.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
306 sp_template_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
307
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
308 # Add or remove space before '<>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
309 sp_before_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
310
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
311 # Add or remove space inside '<' and '>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
312 sp_inside_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
313
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
314 # Add or remove space after '<>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
315 sp_after_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
316
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
317 # Add or remove space between '<>' and '(' as found in 'new List<byte>();'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
318 sp_angle_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
319
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
320 # Add or remove space between '<>' and a word as in 'List<byte> m;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
321 sp_angle_word = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
322
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
323 # Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
324 sp_angle_shift = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
325
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
326 # Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
327 sp_before_sparen = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
328
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
329 # Add or remove space inside if-condition '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
330 sp_inside_sparen = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
331
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
332 # Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
333 sp_inside_sparen_close = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
334
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
335 # Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
336 sp_after_sparen = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
337
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
338 # Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
339 sp_sparen_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
340
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
341 # Add or remove space between 'invariant' and '(' in the D language.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
342 sp_invariant_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
343
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
344 # Add or remove space after the ')' in 'invariant (C) c' in the D language.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
345 sp_after_invariant_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
346
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
347 # Add or remove space before empty statement ';' on 'if', 'for' and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
348 sp_special_semi = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
349
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
350 # Add or remove space before ';'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
351 sp_before_semi = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
352
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
353 # Add or remove space before ';' in non-empty 'for' statements
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
354 sp_before_semi_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
355
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
356 # Add or remove space before a semicolon of an empty part of a for statement.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
357 sp_before_semi_for_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
358
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
359 # Add or remove space after ';', except when followed by a comment. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
360 sp_after_semi = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
361
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
362 # Add or remove space after ';' in non-empty 'for' statements. Default=Force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
363 sp_after_semi_for = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
364
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
365 # Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
366 sp_after_semi_for_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
367
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
368 # Add or remove space before '[' (except '[]')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
369 sp_before_square = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
370
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
371 # Add or remove space before '[]'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
372 sp_before_squares = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
373
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
374 # Add or remove space inside '[' and ']'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
375 sp_inside_square = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
376
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
377 # Add or remove space after ','
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
378 sp_after_comma = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
379
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
380 # Add or remove space before ','
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
381 sp_before_comma = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
382
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
383 # Add or remove space between an open paren and comma: '(,' vs '( ,'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
384 sp_paren_comma = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
385
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
386 # Add or remove space before the variadic '...' when preceded by a non-punctuator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
387 sp_before_ellipsis = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
388
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
389 # Add or remove space after class ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
390 sp_after_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
391
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
392 # Add or remove space before class ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
393 sp_before_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
394
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
395 # Add or remove space before case ':'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
396 sp_before_case_colon = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
397
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
398 # Add or remove space between 'operator' and operator sign
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
399 sp_after_operator = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
400
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
401 # Add or remove space between the operator symbol and the open paren, as in 'operator ++('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
402 sp_after_operator_sym = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
403
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
404 # Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
405 sp_after_cast = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
406
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
407 # Add or remove spaces inside cast parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
408 sp_inside_paren_cast = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
409
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
410 # Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
411 sp_cpp_cast_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
412
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
413 # Add or remove space between 'sizeof' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
414 sp_sizeof_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
415
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
416 # Add or remove space after the tag keyword (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
417 sp_after_tag = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
418
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
419 # Add or remove space inside enum '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
420 sp_inside_braces_enum = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
421
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
422 # Add or remove space inside struct/union '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
423 sp_inside_braces_struct = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
424
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
425 # Add or remove space inside '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
426 sp_inside_braces = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
427
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
428 # Add or remove space inside '{}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
429 sp_inside_braces_empty = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
430
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
431 # Add or remove space between return type and function name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
432 # A minimum of 1 is forced except for pointer return types.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
433 sp_type_func = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
434
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
435 # Add or remove space between function name and '(' on function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
436 sp_func_proto_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
437
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
438 # Add or remove space between function name and '(' on function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
439 sp_func_def_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
440
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
441 # Add or remove space inside empty function '()'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
442 sp_inside_fparens = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
443
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
444 # Add or remove space inside function '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
445 sp_inside_fparen = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
446
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
447 # Add or remove space between ']' and '(' when part of a function call.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
448 sp_square_fparen = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
449
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
450 # Add or remove space between ')' and '{' of function
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
451 sp_fparen_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
452
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
453 # Add or remove space between function name and '(' on function calls
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
454 sp_func_call_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
455
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
456 # Add or remove space between function name and '()' on function calls without parameters.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
457 # If set to 'ignore' (the default), sp_func_call_paren is used.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
458 sp_func_call_paren_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
459
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
460 # Add or remove space between the user function name and '(' on function calls
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
461 # You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
462 sp_func_call_user_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
463
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
464 # Add or remove space between a constructor/destructor and the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
465 sp_func_class_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
466
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
467 # Add or remove space between 'return' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
468 sp_return_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
469
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
470 # Add or remove space between '__attribute__' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
471 sp_attribute_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
472
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
473 # Add or remove space between 'defined' and '(' in '#if defined (FOO)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
474 sp_defined_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
475
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
476 # Add or remove space between 'throw' and '(' in 'throw (something)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
477 sp_throw_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
478
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
479 # Add or remove space between macro and value
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
480 sp_macro = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
481
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
482 # Add or remove space between macro function ')' and value
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
483 sp_macro_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
484
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
485 # Add or remove space between 'else' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
486 sp_else_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
487
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
488 # Add or remove space between '}' and 'else' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
489 sp_brace_else = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
490
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
491 # Add or remove space between '}' and the name of a typedef on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
492 sp_brace_typedef = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
493
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
494 # Add or remove space between 'catch' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
495 sp_catch_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
496
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
497 # Add or remove space between '}' and 'catch' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
498 sp_brace_catch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
499
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
500 # Add or remove space between 'finally' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
501 sp_finally_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
502
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
503 # Add or remove space between '}' and 'finally' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
504 sp_brace_finally = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
505
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
506 # Add or remove space between 'try' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
507 sp_try_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
508
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
509 # Add or remove space between get/set and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
510 sp_getset_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
511
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
512 # Add or remove space before the '::' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
513 sp_before_dc = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
514
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
515 # Add or remove space after the '::' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
516 sp_after_dc = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
517
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
518 # Add or remove around the D named array initializer ':' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
519 sp_d_array_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
520
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
521 # Add or remove space after the '!' (not) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
522 sp_not = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
523
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
524 # Add or remove space after the '~' (invert) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
525 sp_inv = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
526
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
527 # Add or remove space after the '&' (address-of) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
528 # This does not affect the spacing after a '&' that is part of a type.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
529 sp_addr = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
530
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
531 # Add or remove space around the '.' or '->' operators. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
532 sp_member = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
533
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
534 # Add or remove space after the '*' (dereference) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
535 # This does not affect the spacing after a '*' that is part of a type.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
536 sp_deref = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
537
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
538 # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
539 sp_sign = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
540
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
541 # Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
542 sp_incdec = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
543
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
544 # Add or remove space before a backslash-newline at the end of a line. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
545 sp_before_nl_cont = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
546
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
547 # Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
548 sp_after_oc_scope = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
549
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
550 # Add or remove space after the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
551 # '-(int) f:(int) x;' vs '-(int) f: (int) x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
552 sp_after_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
553
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
554 # Add or remove space before the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
555 # '-(int) f: (int) x;' vs '-(int) f : (int) x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
556 sp_before_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
557
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
558 # Add or remove space after the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
559 # '[object setValue:1];' vs '[object setValue: 1];'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
560 sp_after_send_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
561
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
562 # Add or remove space before the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
563 # '[object setValue:1];' vs '[object setValue :1];'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
564 sp_before_send_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
565
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
566 # Add or remove space after the (type) in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
567 # '-(int)f: (int) x;' vs '-(int)f: (int)x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
568 sp_after_oc_type = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
569
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
570 # Add or remove space after the first (type) in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
571 # '-(int) f:(int)x;' vs '-(int)f:(int)x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
572 sp_after_oc_return_type = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
573
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
574 # Add or remove space between '@selector' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
575 # '@selector(msgName)' vs '@selector (msgName)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
576 # Also applies to @protocol() constructs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
577 sp_after_oc_at_sel = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
578
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
579 # Add or remove space between '@selector(x)' and the following word
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
580 # '@selector(foo) a:' vs '@selector(foo)a:'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
581 sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
582
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
583 # Add or remove space inside '@selector' parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
584 # '@selector(foo)' vs '@selector( foo )'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
585 # Also applies to @protocol() constructs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
586 sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
587
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
588 # Add or remove space before a block pointer caret
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
589 # '^int (int arg){...}' vs. ' ^int (int arg){...}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
590 sp_before_oc_block_caret = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
591
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
592 # Add or remove space after a block pointer caret
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
593 # '^int (int arg){...}' vs. '^ int (int arg){...}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
594 sp_after_oc_block_caret = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
595
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
596 # Add or remove space around the ':' in 'b ? t : f'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
597 sp_cond_colon = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
598
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
599 # Add or remove space around the '?' in 'b ? t : f'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
600 sp_cond_question = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
601
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
602 # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
603 sp_case_label = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
604
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
605 # Control the space around the D '..' operator.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
606 sp_range = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
607
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
608 # Control the space after the opening of a C++ comment '// A' vs '//A'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
609 sp_cmt_cpp_start = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
610
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
611 # Controls the spaces between #else or #endif and a trailing comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
612 sp_endif_cmt = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
613
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
614 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
615 # Code alignment (not left column spaces/tabs)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
616 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
617
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
618 # Whether to keep non-indenting tabs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
619 align_keep_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
620
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
621 # Whether to use tabs for aligning
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
622 align_with_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
623
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
624 # Whether to bump out to the next tab when aligning
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
625 align_on_tabstop = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
626
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
627 # Whether to left-align numbers
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
628 align_number_left = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
629
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
630 # Align variable definitions in prototypes and functions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
631 align_func_params = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
632
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
633 # Align parameters in single-line functions that have the same name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
634 # The function names must already be aligned with each other.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
635 align_same_func_call_params = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
636
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
637 # The span for aligning variable definitions (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
638 align_var_def_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
639
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
640 # How to align the star in variable definitions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
641 # 0=Part of the type 'void * foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
642 # 1=Part of the variable 'void *foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
643 # 2=Dangling 'void *foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
644 align_var_def_star_style = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
645
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
646 # How to align the '&' in variable definitions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
647 # 0=Part of the type
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
648 # 1=Part of the variable
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
649 # 2=Dangling
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
650 align_var_def_amp_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
651
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
652 # The threshold for aligning variable definitions (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
653 align_var_def_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
654
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
655 # The gap for aligning variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
656 align_var_def_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
657
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
658 # Whether to align the colon in struct bit fields
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
659 align_var_def_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
660
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
661 # Whether to align any attribute after the variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
662 align_var_def_attribute = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
663
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
664 # Whether to align inline struct/enum/union variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
665 align_var_def_inline = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
666
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
667 # The span for aligning on '=' in assignments (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
668 align_assign_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
669
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
670 # The threshold for aligning on '=' in assignments (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
671 align_assign_thresh = 6 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
672
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
673 # The span for aligning on '=' in enums (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
674 align_enum_equ_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
675
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
676 # The threshold for aligning on '=' in enums (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
677 align_enum_equ_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
678
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
679 # The span for aligning struct/union (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
680 align_var_struct_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
681
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
682 # The threshold for aligning struct/union member definitions (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
683 align_var_struct_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
684
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
685 # The gap for aligning struct/union member definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
686 align_var_struct_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
687
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
688 # The span for aligning struct initializer values (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
689 align_struct_init_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
690
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
691 # The minimum space between the type and the synonym of a typedef
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
692 align_typedef_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
693
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
694 # The span for aligning single-line typedefs (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
695 align_typedef_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
696
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
697 # How to align typedef'd functions with other typedefs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
698 # 0: Don't mix them at all
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
699 # 1: align the open paren with the types
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
700 # 2: align the function type name with the other type names
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
701 align_typedef_func = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
702
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
703 # Controls the positioning of the '*' in typedefs. Just try it.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
704 # 0: Align on typedef type, ignore '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
705 # 1: The '*' is part of type name: typedef int *pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
706 # 2: The '*' is part of the type, but dangling: typedef int *pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
707 align_typedef_star_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
708
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
709 # Controls the positioning of the '&' in typedefs. Just try it.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
710 # 0: Align on typedef type, ignore '&'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
711 # 1: The '&' is part of type name: typedef int &pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
712 # 2: The '&' is part of the type, but dangling: typedef int &pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
713 align_typedef_amp_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
714
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
715 # The span for aligning comments that end lines (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
716 align_right_cmt_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
717
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
718 # If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
719 align_right_cmt_mix = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
720
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
721 # If a trailing comment is more than this number of columns away from the text it follows,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
722 # it will qualify for being aligned. This has to be > 0 to do anything.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
723 align_right_cmt_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
724
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
725 # Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
726 align_right_cmt_at_col = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
727
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
728 # The span for aligning function prototypes (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
729 align_func_proto_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
730
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
731 # Minimum gap between the return type and the function name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
732 align_func_proto_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
733
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
734 # Align function protos on the 'operator' keyword instead of what follows
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
735 align_on_operator = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
736
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
737 # Whether to mix aligning prototype and variable declarations.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
738 # If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
739 align_mix_var_proto = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
740
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
741 # Align single-line functions with function prototypes, uses align_func_proto_span
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
742 align_single_line_func = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
743
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
744 # Aligning the open brace of single-line functions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
745 # Requires align_single_line_func=true, uses align_func_proto_span
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
746 align_single_line_brace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
747
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
748 # Gap for align_single_line_brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
749 align_single_line_brace_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
750
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
751 # The span for aligning ObjC msg spec (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
752 align_oc_msg_spec_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
753
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
754 # Whether to align macros wrapped with a backslash and a newline.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
755 # This will not work right if the macro contains a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
756 align_nl_cont = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
757
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
758 # The minimum space between label and value of a preprocessor define
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
759 align_pp_define_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
760
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
761 # The span for aligning on '#define' bodies (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
762 align_pp_define_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
763
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
764 # Align lines that start with '<<' with previous '<<'. Default=true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
765 align_left_shift = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
766
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
767 # Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
768 align_oc_msg_colon_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
769
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
770 # Aligning parameters in an Obj-C '+' or '-' declaration on the ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
771 align_oc_decl_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
772
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
773 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
774 # Newline adding and removing options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
775 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
776
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
777 # Whether to collapse empty blocks between '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
778 nl_collapse_empty_body = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
779
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
780 # Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
781 nl_assign_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
782
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
783 # Don't split one-line braced statements inside a class xx { } body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
784 nl_class_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
785
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
786 # Don't split one-line enums: 'enum foo { BAR = 15 };'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
787 nl_enum_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
788
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
789 # Don't split one-line get or set functions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
790 nl_getset_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
791
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
792 # Don't split one-line function definitions - 'int foo() { return 0; }'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
793 nl_func_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
794
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
795 # Don't split one-line if/else statements - 'if(a) b++;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
796 nl_if_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
797
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
798 # Add or remove newlines at the start of the file
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
799 nl_start_of_file = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
800
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
801 # The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
802 nl_start_of_file_min = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
803
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
804 # Add or remove newline at the end of the file
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
805 nl_end_of_file = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
806
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
807 # The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
808 nl_end_of_file_min = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
809
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
810 # Add or remove newline between '=' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
811 nl_assign_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
812
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
813 # Add or remove newline between '=' and '[' (D only)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
814 nl_assign_square = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
815
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
816 # Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
817 nl_after_square_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
818
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
819 # The number of blank lines after a block of variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
820 nl_func_var_def_blk = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
821
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
822 # Add or remove newline between a function call's ')' and '{', as in:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
823 # list_for_each(item, &list) { }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
824 nl_fcall_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
825
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
826 # Add or remove newline between 'enum' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
827 nl_enum_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
828
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
829 # Add or remove newline between 'struct and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
830 nl_struct_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
831
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
832 # Add or remove newline between 'union' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
833 nl_union_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
834
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
835 # Add or remove newline between 'if' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
836 nl_if_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
837
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
838 # Add or remove newline between '}' and 'else'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
839 nl_brace_else = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
840
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
841 # Add or remove newline between 'else if' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
842 # If set to ignore, nl_if_brace is used instead
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
843 nl_elseif_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
844
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
845 # Add or remove newline between 'else' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
846 nl_else_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
847
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
848 # Add or remove newline between 'else' and 'if'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
849 nl_else_if = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
850
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
851 # Add or remove newline between '}' and 'finally'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
852 nl_brace_finally = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
853
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
854 # Add or remove newline between 'finally' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
855 nl_finally_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
856
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
857 # Add or remove newline between 'try' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
858 nl_try_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
859
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
860 # Add or remove newline between get/set and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
861 nl_getset_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
862
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
863 # Add or remove newline between 'for' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
864 nl_for_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
865
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
866 # Add or remove newline between 'catch' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
867 nl_catch_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
868
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
869 # Add or remove newline between '}' and 'catch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
870 nl_brace_catch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
871
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
872 # Add or remove newline between 'while' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
873 nl_while_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
874
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
875 # Add or remove newline between 'using' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
876 nl_using_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
877
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
878 # Add or remove newline between two open or close braces.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
879 # Due to general newline/brace handling, REMOVE may not work.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
880 nl_brace_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
881
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
882 # Add or remove newline between 'do' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
883 nl_do_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
884
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
885 # Add or remove newline between '}' and 'while' of 'do' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
886 nl_brace_while = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
887
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
888 # Add or remove newline between 'switch' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
889 nl_switch_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
890
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
891 # Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
892 # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
893 nl_multi_line_cond = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
894
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
895 # Force a newline in a define after the macro name for multi-line defines.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
896 nl_multi_line_define = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
897
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
898 # Whether to put a newline before 'case' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
899 nl_before_case = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
900
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
901 # Add or remove newline between ')' and 'throw'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
902 nl_before_throw = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
903
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
904 # Whether to put a newline after 'case' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
905 nl_after_case = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
906
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
907 # Newline between namespace and {
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
908 nl_namespace_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
909
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
910 # Add or remove newline between 'template<>' and whatever follows.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
911 nl_template_class = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
912
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
913 # Add or remove newline between 'class' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
914 nl_class_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
915
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
916 # Add or remove newline after each ',' in the constructor member initialization
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
917 nl_class_init_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
918
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
919 # Add or remove newline between return type and function name in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
920 nl_func_type_name = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
921
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
922 # Add or remove newline between return type and function name inside a class {}
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
923 # Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
924 nl_func_type_name_class = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
925
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
926 # Add or remove newline between function scope and name in a definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
927 # Controls the newline after '::' in 'void A::f() { }'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
928 nl_func_scope_name = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
929
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
930 # Add or remove newline between return type and function name in a prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
931 nl_func_proto_type_name = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
932
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
933 # Add or remove newline between a function name and the opening '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
934 nl_func_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
935
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
936 # Add or remove newline between a function name and the opening '(' in the definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
937 nl_func_def_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
938
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
939 # Add or remove newline after '(' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
940 nl_func_decl_start = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
941
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
942 # Add or remove newline after '(' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
943 nl_func_def_start = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
944
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
945 # Overrides nl_func_decl_start when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
946 nl_func_decl_start_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
947
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
948 # Overrides nl_func_def_start when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
949 nl_func_def_start_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
950
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
951 # Add or remove newline after each ',' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
952 nl_func_decl_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
953
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
954 # Add or remove newline after each ',' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
955 nl_func_def_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
956
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
957 # Add or remove newline before the ')' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
958 nl_func_decl_end = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
959
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
960 # Add or remove newline before the ')' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
961 nl_func_def_end = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
962
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
963 # Overrides nl_func_decl_end when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
964 nl_func_decl_end_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
965
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
966 # Overrides nl_func_def_end when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
967 nl_func_def_end_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
968
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
969 # Add or remove newline between '()' in a function declaration.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
970 nl_func_decl_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
971
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
972 # Add or remove newline between '()' in a function definition.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
973 nl_func_def_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
974
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
975 # Add or remove newline between function signature and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
976 nl_fdef_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
977
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
978 # Whether to put a newline after 'return' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
979 nl_after_return = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
980
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
981 # Add or remove a newline between the return keyword and return expression.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
982 nl_return_expr = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
983
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
984 # Whether to put a newline after semicolons, except in 'for' statements
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
985 nl_after_semicolon = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
986
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
987 # Whether to put a newline after brace open.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
988 # This also adds a newline before the matching brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
989 nl_after_brace_open = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
990
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
991 # If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
992 # placed between the open brace and a trailing single-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
993 nl_after_brace_open_cmt = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
994
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
995 # Whether to put a newline after a virtual brace open with a non-empty body.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
996 # These occur in un-braced if/while/do/for statement bodies.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
997 nl_after_vbrace_open = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
998
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
999 # Whether to put a newline after a virtual brace open with an empty body.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1000 # These occur in un-braced if/while/do/for statement bodies.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1001 nl_after_vbrace_open_empty = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1002
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1003 # Whether to put a newline after a brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1004 # Does not apply if followed by a necessary ';'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1005 nl_after_brace_close = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1006
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1007 # Whether to put a newline after a virtual brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1008 # Would add a newline before return in: 'if (foo) a++; return;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1009 nl_after_vbrace_close = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1010
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1011 # Whether to alter newlines in '#define' macros
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1012 nl_define_macro = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1013
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1014 # Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1015 nl_squeeze_ifdef = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1016
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1017 # Add or remove blank line before 'if'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1018 nl_before_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1019
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1020 # Add or remove blank line after 'if' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1021 nl_after_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1022
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1023 # Add or remove blank line before 'for'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1024 nl_before_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1025
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1026 # Add or remove blank line after 'for' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1027 nl_after_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1028
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1029 # Add or remove blank line before 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1030 nl_before_while = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1031
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1032 # Add or remove blank line after 'while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1033 nl_after_while = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1034
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1035 # Add or remove blank line before 'switch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1036 nl_before_switch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1037
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1038 # Add or remove blank line after 'switch' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1039 nl_after_switch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1040
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1041 # Add or remove blank line before 'do'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1042 nl_before_do = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1043
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1044 # Add or remove blank line after 'do/while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1045 nl_after_do = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1046
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1047 # Whether to double-space commented-entries in struct/enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1048 nl_ds_struct_enum_cmt = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1049
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1050 # Whether to double-space before the close brace of a struct/union/enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1051 # (lower priority than 'eat_blanks_before_close_brace')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1052 nl_ds_struct_enum_close_brace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1053
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1054 # Add or remove a newline around a class colon.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1055 # Related to pos_class_colon, nl_class_init_args, and pos_comma.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1056 nl_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1057
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1058 # Change simple unbraced if statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1059 # 'if(b)\n i++;' => 'if(b) i++;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1060 nl_create_if_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1061
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1062 # Change simple unbraced for statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1063 # 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1064 nl_create_for_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1065
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1066 # Change simple unbraced while statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1067 # 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1068 nl_create_while_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1069
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1070 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1071 # Positioning options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1072 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1073
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1074 # The position of arithmetic operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1075 pos_arith = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1076
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1077 # The position of assignment in wrapped expressions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1078 # Do not affect '=' followed by '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1079 pos_assign = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1080
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1081 # The position of boolean operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1082 pos_bool = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1083
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1084 # The position of comparison operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1085 pos_compare = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1086
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1087 # The position of conditional (b ? t : f) operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1088 pos_conditional = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1089
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1090 # The position of the comma in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1091 pos_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1092
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1093 # The position of the comma in the constructor initialization list
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1094 pos_class_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1095
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1096 # The position of colons between constructor and member initialization
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1097 pos_class_colon = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1098
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1099 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1100 # Line Splitting options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1101 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1102
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1103 # Try to limit code width to N number of columns
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1104 code_width = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1105
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1106 # Whether to fully split long 'for' statements at semi-colons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1107 ls_for_split_full = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1108
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1109 # Whether to fully split long function protos/calls at commas
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1110 ls_func_split_full = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1111
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1112 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1113 # Blank line options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1114 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1115
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1116 # The maximum consecutive newlines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1117 nl_max = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1118
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1119 # The number of newlines after a function prototype, if followed by another function prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1120 nl_after_func_proto = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1121
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1122 # The number of newlines after a function prototype, if not followed by another function prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1123 nl_after_func_proto_group = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1124
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1125 # The number of newlines after '}' of a multi-line function body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1126 nl_after_func_body = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1127
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1128 # The number of newlines after '}' of a single line function body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1129 nl_after_func_body_one_liner = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1130
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1131 # The minimum number of newlines before a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1132 # Doesn't apply if after a brace open or another multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1133 nl_before_block_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1134
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1135 # The minimum number of newlines before a single-line C comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1136 # Doesn't apply if after a brace open or other single-line C comments.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1137 nl_before_c_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1138
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1139 # The minimum number of newlines before a CPP comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1140 # Doesn't apply if after a brace open or other CPP comments.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1141 nl_before_cpp_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1142
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1143 # Whether to force a newline after a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1144 nl_after_multiline_comment = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1145
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1146 # The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1147 # Will not change the newline count if after a brace open.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1148 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1149 nl_before_access_spec = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1150
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1151 # The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1152 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1153 nl_after_access_spec = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1154
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1155 # The number of newlines between a function def and the function comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1156 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1157 nl_comment_func_def = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1158
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1159 # The number of newlines after a try-catch-finally block that isn't followed by a brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1160 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1161 nl_after_try_catch_finally = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1162
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1163 # The number of newlines before and after a property, indexer or event decl.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1164 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1165 nl_around_cs_property = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1166
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1167 # The number of newlines between the get/set/add/remove handlers in C#.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1168 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1169 nl_between_get_set = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1170
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1171 # Whether to remove blank lines after '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1172 eat_blanks_after_open_brace = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1173
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1174 # Whether to remove blank lines before '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1175 eat_blanks_before_close_brace = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1176
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1177 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1178 # Code modifying options (non-whitespace)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1179 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1180
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1181 # Add or remove braces on single-line 'do' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1182 mod_full_brace_do = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1183
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1184 # Add or remove braces on single-line 'for' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1185 mod_full_brace_for = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1186
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1187 # Add or remove braces on single-line function definitions. (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1188 mod_full_brace_function = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1189
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1190 # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1191 mod_full_brace_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1192
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1193 # Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1194 # If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1195 mod_full_brace_if_chain = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1196
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1197 # Don't remove braces around statements that span N newlines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1198 mod_full_brace_nl = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1199
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1200 # Add or remove braces on single-line 'while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1201 mod_full_brace_while = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1202
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1203 # Add or remove braces on single-line 'using ()' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1204 mod_full_brace_using = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1205
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1206 # Add or remove unnecessary paren on 'return' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1207 mod_paren_on_return = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1208
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1209 # Whether to change optional semicolons to real semicolons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1210 mod_pawn_semicolon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1211
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1212 # Add parens on 'while' and 'if' statement around bools
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1213 mod_full_paren_if_bool = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1214
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1215 # Whether to remove superfluous semicolons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1216 mod_remove_extra_semicolon = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1217
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1218 # If a function body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1219 # the close brace, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1220 mod_add_long_function_closebrace_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1221
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1222 # If a switch body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1223 # the close brace, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1224 mod_add_long_switch_closebrace_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1225
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1226 # If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1227 # the #else, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1228 mod_add_long_ifdef_endif_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1229
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1230 # If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1231 # the #endif, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1232 mod_add_long_ifdef_else_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1233
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1234 # If TRUE, will sort consecutive single-line 'import' statements [Java, D]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1235 mod_sort_import = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1236
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1237 # If TRUE, will sort consecutive single-line 'using' statements [C#]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1238 mod_sort_using = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1239
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1240 # If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1241 # This is generally a bad idea, as it may break your code.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1242 mod_sort_include = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1243
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1244 # If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1245 mod_move_case_break = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1246
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1247 # Will add or remove the braces around a fully braced case statement.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1248 # Will only remove the braces if there are no variable declarations in the block.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1249 mod_case_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1250
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1251 # If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1252 mod_remove_empty_return = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1253
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1254 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1255 # Comment modifications
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1256 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1257
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1258 # Try to wrap comments at cmt_width columns
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1259 cmt_width = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1260
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1261 # Set the comment reflow mode (default: 0)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1262 # 0: no reflowing (apart from the line wrapping due to cmt_width)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1263 # 1: no touching at all
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1264 # 2: full reflow
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1265 cmt_reflow_mode = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1266
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1267 # If false, disable all multi-line comment changes, including cmt_width. keyword substitution, and leading chars.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1268 # Default is true.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1269 cmt_indent_multi = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1270
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1271 # Whether to group c-comments that look like they are in a block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1272 cmt_c_group = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1273
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1274 # Whether to put an empty '/*' on the first line of the combined c-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1275 cmt_c_nl_start = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1276
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1277 # Whether to put a newline before the closing '*/' of the combined c-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1278 cmt_c_nl_end = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1279
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1280 # Whether to group cpp-comments that look like they are in a block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1281 cmt_cpp_group = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1282
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1283 # Whether to put an empty '/*' on the first line of the combined cpp-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1284 cmt_cpp_nl_start = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1285
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1286 # Whether to put a newline before the closing '*/' of the combined cpp-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1287 cmt_cpp_nl_end = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1288
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1289 # Whether to change cpp-comments into c-comments
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1290 cmt_cpp_to_c = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1291
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1292 # Whether to put a star on subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1293 cmt_star_cont = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1294
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1295 # The number of spaces to insert at the start of subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1296 cmt_sp_before_star_cont = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1297
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1298 # The number of spaces to insert after the star on subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1299 cmt_sp_after_star_cont = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1300
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1301 # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1302 # the comment are the same length. Default=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1303 cmt_multi_check_last = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1304
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1305 # The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1306 # Will substitute $(filename) with the current file's name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1307 cmt_insert_file_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1308
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1309 # The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1310 # Will substitute $(filename) with the current file's name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1311 cmt_insert_file_footer = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1312
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1313 # The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1314 # Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1315 # Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1316 cmt_insert_func_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1317
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1318 # The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1319 # Will substitute $(class) with the class name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1320 cmt_insert_class_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1321
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1322 # If a preprocessor is encountered when stepping backwards from a function name, then
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1323 # this option decides whether the comment should be inserted.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1324 # Affects cmt_insert_func_header and cmt_insert_class_header.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1325 cmt_insert_before_preproc = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1326
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1327 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1328 # Preprocessor options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1329 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1330
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1331 # Control indent of preprocessors inside #if blocks at brace level 0
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1332 pp_indent = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1333
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1334 # Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1335 pp_indent_at_level = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1336
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1337 # If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1338 pp_indent_count = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1339
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1340 # Add or remove space after # based on pp_level of #if blocks
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1341 pp_space = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1342
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1343 # Sets the number of spaces added with pp_space
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1344 pp_space_count = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1345
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1346 # The indent for #region and #endregion in C# and '#pragma region' in C/C++
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1347 pp_indent_region = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1348
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1349 # Whether to indent the code between #region and #endregion
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1350 pp_region_indent_code = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1351
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1352 # If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1353 pp_indent_if = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1354
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1355 # Control whether to indent the code between #if, #else and #endif when not at file-level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1356 pp_if_indent_code = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1357
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1358 # Whether to indent '#define' at the brace level (true) or from column 1 (false)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1359 pp_define_at_level = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1360
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1361 # You can force a token to be a type with the 'type' option.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1362 # Example:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1363 # type myfoo1 myfoo2
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1364 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1365 # You can create custom macro-based indentation using macro-open,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1366 # macro-else and macro-close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1367 # Example:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1368 # macro-open BEGIN_TEMPLATE_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1369 # macro-open BEGIN_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1370 # macro-close END_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1371 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1372 # You can assign any keyword to any type with the set option.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1373 # set func_call_user _ N_
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1374 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1375 # The full syntax description of all custom definition config entries
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1376 # is shown below:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1377 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1378 # define custom tokens as:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1379 # - embed whitespace in token using '' escape character, or
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1380 # put token in quotes
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1381 # - these: ' " and ` are recognized as quote delimiters
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1382 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1383 # type token1 token2 token3 ...
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1384 # ^ optionally specify multiple tokens on a single line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1385 # define def_token output_token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1386 # ^ output_token is optional, then NULL is assumed
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1387 # macro-open token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1388 # macro-close token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1389 # macro-else token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1390 # set id token1 token2 ...
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1391 # ^ optionally specify multiple tokens on a single line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1392 # ^ id is one of the names in token_enum.h sans the CT_ prefix,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1393 # e.g. PP_PRAGMA
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1394 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1395 # all tokens are separated by any mix of ',' commas, '=' equal signs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1396 # and whitespace (space, tab)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1397 #