summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/c.test
blob: 7b71c2f1cc8d622abd449a40533adbbdb24b81d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
#
# Test cases specifically for the C language.
#
# Range: 00000 - 09999
# test.name  config.file  input.file


# little general tests ====================================================

00000  indent_columns-3.cfg                 c/comment-indent.c
00001  cpp_to_c-1.cfg                       c/comment-indent.c
00002  cpp_to_c-2.cfg                       c/comment-indent.c
00003  cpp_to_c-3.cfg                       c/comment-indent.c
00004  indent-1.cfg                         c/switch.c
00005  ben_047.cfg                          c/cmt-align.c
00006  indent_columns-3.cfg                 c/comment-convert.c
00007  cpp_to_c-1.cfg                       c/comment-convert.c
00008  cpp_to_c-2.cfg                       c/comment-convert.c
00009  cpp_to_c-3.cfg                       c/comment-convert.c


# brace styles

00010  ben_048.cfg                          c/braces.c
00011  brace-allman.cfg                     c/braces.c
00012! brace-banner.cfg                     c/braces.c
00013  brace-gnu.cfg                        c/braces.c
00014  brace-kr.cfg                         c/braces.c
00015  brace-ws.cfg                         c/braces.c
00016  brace-ws2.cfg                        c/braces.c

00020  ben_049.cfg                          c/define-if-indent.c
00050  brace-remove-2.cfg                   c/brace-remove.c
00051  brace-remove-all.cfg                 c/brace-remove.c
00052  brace-remove-all.cfg                 c/brace-remove2.c
00053  nl_brace_test.cfg                    c/brace.c
00054  if_chain.cfg                         c/if_chain.c
00055  cgal.cfg                             c/braces-2.c
00056  brace-remove-all.cfg                 c/brace-remove3.c
00057  if_chain.cfg                         c/brace-remove3.c
00058  brace-kr-nobr.cfg                    c/if_chain.c

00060  ben_050.cfg                          c/braces-2.c
00061  ben_051.cfg                          c/braces-3.c
00062  ben_052.cfg                          c/braces-4.c
00065  ben_053.cfg                          c/braces-5.c
00066  ben_054.cfg                          c/vb-while.c
00067  ben_055.cfg                          c/vb-do.c


00068  ben_056.cfg                          c/bsnl.c
00069  ben_057.cfg                          c/vb-pp.c

00070  ben_058.cfg                          c/return-multi.c
00071  ben_042.cfg                          c/include_define.h
00072  star_pos-0.cfg                       c/align-proto.c
00073  empty.cfg                            c/nl_proto_endif.c
00074  clang-has_include.cfg                c/clang-has_include.h
00076  1225.cfg                             c/1225.c

00081  else-if-1.cfg                        c/else-if.c
00082  else-if-2.cfg                        c/else-if.c

00091  cond-1.cfg                           c/cond.c
00092  indent_columns-3.cfg                 c/cond.c
00093  sp_cond_colon.cfg                    c/cond.c

00101  ben_061.cfg                          c/bugs-1.c
00102  space_indent_columns-3.cfg           c/bugs-2.c
00103  ben_063.cfg                          c/bugs-3.c
00104  ben_064.cfg                          c/bugs-4.c
00105  ben_065.cfg                          c/bugs-5.c
00106  ben_011.cfg                          c/bugs-6.c
00107  ben_011.cfg                          c/bugs-7.c
00108  indent_columns-3.cfg                 c/bugs-8.c

00110  ben_069.cfg                          c/misc.c
00111  brace-kr-br.cfg                      c/misc.c

00120  sp_cmt_cpp_start-r.cfg               c/sp_cmt_cpp_start.c
00121  sp_cmt_cpp_start-a.cfg               c/sp_cmt_cpp_start.c
00122  sp_cmt_cpp_start_force.cfg           c/sp_cmt_cpp_start.c

00130  ben_070.cfg                          c/minus-minus.c
00135  nepenthes.cfg                        c/br_cmt.c

00140  ben_071.cfg                          c/global-vars.c
00141  ben_072.cfg                          c/deref.c
00142  ben_073.cfg                          c/type-cast.c
00143  ben_074.cfg                          c/t3.in.c
00144  ben_075.cfg                          c/align-proto-vars.c
00145  ben_076.cfg                          c/vardefcol.c


# casts

00150  ben_077.cfg                          c/casts.c
00151  cast-sp-r.cfg                        c/casts.c
00152  cast-sp-a.cfg                        c/casts.c
00153  cast-type.cfg                        c/casts.c
00154  sp_after_cast.cfg                    c/casts.c
00155  ben_078.cfg                          c/cast_brace.c


# fcn indents

00160  indent_func_param.cfg                c/fcn_indent.c
00161  indent_func_call_param.cfg           c/fcn_indent.c
00162  indent_func_def_param.cfg            c/fcn_indent.c
00163  indent_func_proto_param.cfg          c/fcn_indent.c
00164  rdan.cfg                             c/fcn_indent_func_def_col1.c
00165  sp_func_call_user_inside_fparen.cfg  c/sp_func_call_user_inside_fparen.c

00170  empty.cfg                            c/beautifier-off.c
00180  sf538.cfg                            c/lvalue.c


# switch & case stuff

00201  case-1.cfg                           c/case.c
00202  case-2.cfg                           c/case.c
00203  case-3.cfg                           c/case.c
00204  bug_1718.cfg                         c/bug_1718.c
00205  nl_before_return_false.cfg           c/case-nl_before_return.c
00206  nl_before_return_true.cfg            c/case-nl_before_return.c


# structure initializers

00301  ben_079.cfg                          c/align-struct-init.c
00302  ben_080.cfg                          c/one-liner-init.c
00303  1liner-split.cfg                     c/one-liner-init.c
00304  1liner-no-split.cfg                  c/one-liner-init.c
00305  ben_081.cfg                          c/one-liner-define.c

00310  empty.cfg                            c/sp_embed_comment.c

00320  rdan.cfg                             c/indent_first_bool_expr.c


# aligning tresholds

00401  align-1.cfg                          c/align-equ.c
00402  align-1.cfg                          c/align-var.c
00403  align-2.cfg                          c/align-var.c
00404  align-3.cfg                          c/align-var.c
00405  align-3.cfg                          c/bits.c
00406  bug_i_771.cfg                        c/bug_i_771.c

00411  align_typedef_gap-3_span-5.cfg       c/align-typedef.c
00412  align_typedef_gap-3_span-5.cfg       c/align-typedef.c
00413  align_typedef_func-1.cfg             c/align-typedef.c
00414  align_typedef_func-2.cfg             c/align-typedef.c
00415  align_stack.cfg                      c/align_stack.c
00416  align_sf_call_thresh_416.cfg         c/align_sf_call_thresh_416.c
00417  align_sf_call_thresh_417.cfg         c/align_sf_call_thresh_417.c
00418  align_sf_call_span_418.cfg           c/align_sf_call_span_418.c
00419  align_sf_call_span_419.cfg           c/align_sf_call_span_419.c
00420  Issue-2278.cfg                       c/Issue-2278.c

00421  nl_ds_struct_enum_cmt-t.cfg          c/nl_ds_struct_enum.c
00422  nl_ds_struct_enum-2.cfg              c/nl_ds_struct_enum.c
00423  bug_1702.cfg                         c/bug_1702.c

00430  empty.cfg                            c/paren-indent.c
00431  indent_paren_close-1.cfg             c/paren-indent.c
00432  indent_paren_close-2.cfg             c/paren-indent.c

00440  bug_489.cfg                          c/bug_489.c

00451  code_width-80.cfg                    c/enum_gallery.c
00452  nl_enum_own_lines-a.cfg              c/enum_gallery.c
00453! nl_enum_own_lines-3.cfg              c/enum_gallery.c
00454  nl_enum_own_lines-4.cfg              c/enum_gallery.c


# boolean and comma positioning

00501  bool-pos-eol.cfg                     c/bool-pos.c
00502  bool-pos-sol.cfg                     c/bool-pos.c
00503  pos_compare-sol.cfg                  c/pos_compare.c
00504  pos_compare-eol.cfg                  c/pos_compare.c
00505  pos_conditional-l.cfg                c/pos_conditional.c
00506  pos_conditional-t.cfg                c/pos_conditional.c
00510  bool-pos-eol-break.cfg               c/bool-pos.c
00511  bool-pos-sol-break.cfg               c/bool-pos.c
00512  bool-pos-eol-force.cfg               c/bool-pos.c
00513  bool-pos-sol-force.cfg               c/bool-pos.c
00514  my_conf.cfg                          c/my_infile.c

00600  indent_columns-3.cfg                 c/dos.c
00601  indent_columns-3.cfg                 c/mac.c
00611  empty.cfg                            c/pp-space.c
00612  pp-indent-2.cfg                      c/pp-space.c
00613  pp_indent-a.cfg                      c/pp-space.c
00614  pp-space.cfg                         c/pp-space.c
00615  pp-indent-2.cfg                      c/pp-nest.c
00616  pp_if_indent-1.cfg                   c/pp-if-indent.c
00617  rdan.cfg                             c/pp-if-indent.c
00618  pp_if_indent-4.cfg                   c/pp-if-indent.c

00620  ben_083.cfg                          c/indent-assign.c
00621  nl_endif.cfg                         c/nl_endif.c
00622  indent_assign.cfg                    c/indent-off-after-assign.c

00631  nl_assign1.cfg                       c/nl_assign.c
00632  nl_assign2.cfg                       c/nl_assign.c

# function def newlines
00701  func-def-1.cfg                       c/function-def.c
00702  func-def-2.cfg                       c/function-def.c
00703  func-def-3.cfg                       c/function-def.c

00710  add_long_closebrace_comment_1.cfg    c/add_long_comment.c

# nl_after_semicolon and nl_after_open_brace

00721  nl_semicolon.cfg                     c/nl-semicolon.c

# function types

00801  ben_084.cfg                          c/fcn_type.c
00802  ben_085.cfg                          c/funcfunc.c
00803  sf537.cfg                            c/fcn_type.c

# code width

00901  width.cfg                            c/code_width.c
00902  width-2.cfg                          c/code_width.c
00903  width-3.cfg                          c/code_width.c

# pascal ptr_type

00910  pascal_ptr.cfg                       c/pascal_ptr.c
00911  empty_body.cfg                       c/pascal_ptr.c

01000  mod-paren.cfg                        c/mod-paren.c
01001  nl-comment.cfg                       c/nl-comment.c
01002  mod-paren2.cfg                       c/mod-paren.c

01005  mod_case_brace_add.cfg               c/mod_case_brace.c
01006  mod_case_brace_rm.cfg                c/mod_case_brace.c
01007  mod_move_case_brace.cfg              c/mod_case_brace.c

01011  del_semicolon.cfg                    c/semicolons.c
01012  ben_086.cfg                          c/semicolons.c

01015  empty.cfg                            c/paren_indent.c
01016  align_attr.cfg                       c/align_attr.c

01020  kw_subst.cfg                         c/kw_subst.c
01021  kw_subst3.cfg                        c/hello.c
01022  kw_subst3.cfg                        c/kw_subst.c

01030  cmt_indent_multi-f.cfg               c/multi.h

01035  empty.cfg                            c/func_wrap.c
01036  sp_inside_fparen-f.cfg               c/func_wrap.c
01037  type_wrap.cfg                        c/type_wrap.c

01040  newline_after_endif.cfg              c/newline_after_endif.c

01050  func_call_user.cfg                   c/func_call_user.c

01060  empty.cfg                            c/backslash-newline-lex.c

01070  label_colon_nl_1.cfg                 c/various_colons.c
01071  label_colon_nl_2.cfg                 c/various_colons.c

01080  empty.cfg                            c/bug_1196.c

# big general tests

02000  ben_087.cfg                          c/i2c-core.c
02001  preproc-cleanup.cfg                  c/directfb.h
02002  ben2.cfg                             c/i2c-core.c

# clark's style - blank lines before and after flow control, indented comments

02100  clark.cfg                            c/i2c-core.c
02101  clark.cfg                            c/comment-indent.c

02200  xml-str.cfg                          c/xml.c
02201  xml-str.cfg                          c/align-string.c

02300  ben_088.cfg                          c/preproc-if.c
02301  d.cfg                                c/preproc-if.c
02302  cpp_to_c-1.cfg                       c/nl-cont.c
02303  cpp_to_c-1.cfg                       c/nl-cont2.c

02310  ben_089.cfg                          c/empty-for.c
02311  ben_090.cfg                          c/pragma.c

02315  pp_ret.cfg                           c/pp_ret.c

02320  nl_create_one_liner.cfg              c/nl_create_one_liner.c
02325  sort_imports.cfg                     c/sort_include.c


# some embedded sql stuff

02400  ben_091.cfg                          sql/mysql.sqc                   C
02401  ben_092.cfg                          sql/sta-select.sqc              C
02402  issue_527.cfg                        sql/issue_527.sqc               C

02410  pp_if_indent-0.cfg                   c/ifdef-indent.c
02411  pp_if_indent-1.cfg                   c/ifdef-indent.c
02412  pp_if_indent-2.cfg                   c/ifdef-indent.c
02413  pp_if_indent-3.cfg                   c/ifdef-indent.c
02414  nl_whole_file_ifdef.cfg              c/whole_file_ifdef.c
02415  endif.cfg                            c/endif.c
02416  cmt_nl_end.cfg                       c/cmt_nl_end.c

02421  cmt_multi_check_last-f.cfg           c/cmt_multi.c
02422  empty.cfg                            c/cmt_multi.c
02423  empty.cfg                            c/cmt_multi_utf8.c

02431  align_right_cmt_gap-1.cfg            c/cmt_right_align.c
02432  space_indent_columns-3.cfg           c/cmt_right_align.c

02440  empty.cfg                            c/string_utf8.c
02441  empty.cfg                            c/utf8-identifiers.c

02451  return-1.cfg                         c/nl_return_expr.c
02452  return-2.cfg                         c/nl_return_expr.c
02453  return-3.cfg                         c/nl_return_expr.c
02454  return-4.cfg                         c/nl_return_expr.c

02455  mod_paren_on_return-a.cfg            c/macro-returns.c
02456  mod_paren_on_return-r.cfg            c/macro-returns.c
02457  nl_before_return_true.cfg            c/nl_before_return.c

02460  freebsd.cfg                          c/freebsd.c

02486  doxy-comment-no.cfg                  c/doxy-comment.c
02487  doxy-comment-yes.cfg                 c/doxy-comment.c

02501  ger.cfg                              c/custom_types_ssl.c
02502  custom_types_ssl.cfg                 c/custom_types_ssl.c
#02503  ger.cfg                              c/pp_concat_asn1.h

02504  align_keep_extra.cfg                 c/align_keep_extra.c

02510  ben_093.cfg                          c/asm.c
10004  ben_094.cfg                          c/pragma_asm.c

07630  indent-vbrace.cfg                    c/indent-vbrace.c

08399  ben_095.cfg                          c/gh399.c

09594  indent_columns-3.cfg                 c/sf594.c
09588  empty.cfg                            c/sf588.c

09601  sp_after_sparen.cfg                  c/sp_after_sparen.c

09602  bug_671.cfg                          c/bug_671.c

09603  indent_ternary_operator-1.cfg        c/indent_ternary-1.c
09604  indent_ternary_operator-2.cfg        c/indent_ternary-2.c

09605  sp_arith-f.cfg                       c/negative_value.c
09606  ptr-arith.cfg                        c/extern.c
09607  ptr-arith.cfg                        c/attribute.c
09608  aet-func_call_user.cfg               c/func_call_user2.c
09609  Issue_2279.cfg                       c/Issue_2279.c
09610  force_tab_after_define-t.cfg         c/bug_i_876.c
09611  space_indent_columns-4.cfg           c/bug_i_222.c
09612  empty.cfg                            c/bug_1041.c
09613  empty.cfg                            c/i1413.c
09614  empty.cfg                            c/string_prefixes.c
09615  i1564.cfg                            c/i1564.c

09616  enum_comma_ifdef.cfg                 c/enum_comma_ifdef.c
09617  Issue_2360-a.cfg                     c/Issue_2360.c
09618  Issue_2360-b.cfg                     c/Issue_2360.c
09619  Issue_2411.cfg                       c/Issue_2411.c
09620  Issue_2640.cfg                       c/Issue_2640.c
09621  preproc-cleanup.cfg                  c/pp-before-func-def.c

10005  empty.cfg                            c/i1270.c

10006  bug_2331.cfg                         c/bug_2331.c

10007  indent_macro_brace-true.cfg          c/indent-macro-brace.c
10008  indent_macro_brace-false.cfg         c/indent-macro-brace.c

10009  empty.cfg                            c/return-compound-literal.c
10010  indent_compound_literal_return-false.cfg c/return-compound-literal.c
10011  indent_compound_literal_return-true.cfg c/return-compound-literal.c

10012  indent_sparen_extra-8.cfg            c/sparen-indent.c
10013  empty.cfg                            c/sparen-indent.c
10014  indent_continue-8.cfg                c/sparen-indent.c
10015  empty.cfg                            c/Issue_2845.h