blob: 584ca03322ff0047382d17bed13379ae6989d3dd (
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
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
|
#
# Test cases specifically for the C language.
#
# test.name config.file input.file
# little general tests ====================================================
00000 common/indent_columns-3.cfg c/comment-indent.c
00001 c/cpp_to_c-1.cfg c/comment-indent.c
00002 c/cpp_to_c-2.cfg c/comment-indent.c
00003 c/cpp_to_c-3.cfg c/comment-indent.c
00004 c/indent-1.cfg c/switch.c
00005 c/ben_047.cfg c/cmt-align.c
00006 common/indent_columns-3.cfg c/comment-convert.c
00007 c/cpp_to_c-1.cfg c/comment-convert.c
00008 c/cpp_to_c-2.cfg c/comment-convert.c
00009 c/cpp_to_c-3.cfg c/comment-convert.c
# brace styles
00010 c/ben_048.cfg c/braces.c
00011 common/brace-allman.cfg c/braces.c
00012! c/brace-banner.cfg c/braces.c
00013 c/brace-gnu.cfg c/braces.c
00014 c/brace-kr.cfg c/braces.c
00015 c/brace-ws.cfg c/braces.c
00016 c/brace-ws2.cfg c/braces.c
00020 c/ben_049.cfg c/define-if-indent.c
00050 c/brace-remove-2.cfg c/brace-remove.c
00051 c/brace-remove-all.cfg c/brace-remove.c
00052 c/brace-remove-all.cfg c/brace-remove2.c
00053 c/nl_brace_test.cfg c/brace.c
00054 c/if_chain.cfg c/if_chain.c
00055 c/cgal.cfg c/braces-2.c
00056 c/brace-remove-all.cfg c/brace-remove3.c
00057 c/if_chain.cfg c/brace-remove3.c
00058 c/brace-kr-nobr.cfg c/if_chain.c
00060 c/ben_050.cfg c/braces-2.c
00061 c/ben_051.cfg c/braces-3.c
00062 c/ben_052.cfg c/braces-4.c
00065 c/ben_053.cfg c/braces-5.c
00066 c/ben_054.cfg c/vb-while.c
00067 c/ben_055.cfg c/vb-do.c
00068 c/ben_056.cfg c/bsnl.c
00069 c/ben_057.cfg c/vb-pp.c
00070 c/ben_058.cfg c/return-multi.c
00071 common/ben_042.cfg c/include_define.h
00072 common/star_pos-0.cfg c/align-proto.c
00073 common/empty.cfg c/nl_proto_endif.c
00074 c/clang-has_include.cfg c/clang-has_include.h
00076 c/1225.cfg c/1225.c
00081 c/else-if-1.cfg c/else-if.c
00082 c/else-if-2.cfg c/else-if.c
00083 c/Issue_3601.cfg c/Issue_3601.c
00091 c/cond-1.cfg c/cond.c
00092 common/indent_columns-3.cfg c/cond.c
00093 c/sp_cond_colon.cfg c/cond.c
00094 c/Issue_3457.cfg c/Issue_3457.c
00101 c/ben_061.cfg c/bugs-1.c
00102 c/space_indent_columns-3.cfg c/bugs-2.c
00103 c/ben_063.cfg c/bugs-3.c
00104 c/ben_064.cfg c/bugs-4.c
00105 c/ben_065.cfg c/bugs-5.c
00106 common/ben_011.cfg c/bugs-6.c
00107 common/ben_011.cfg c/bugs-7.c
00108 common/indent_columns-3.cfg c/bugs-8.c
00110 c/ben_069.cfg c/misc.c
00111 c/brace-kr-br.cfg c/misc.c
00120 c/sp_cmt_cpp_start-r.cfg c/sp_cmt_cpp_start.c
00121 common/sp_cmt_cpp_start-a.cfg c/sp_cmt_cpp_start.c
00122 common/sp_cmt_cpp_start_force.cfg c/sp_cmt_cpp_start.c
00123 c/cmt_reflow.cfg c/cmt_reflow.c
00130 c/ben_070.cfg c/minus-minus.c
00135 c/nepenthes.cfg c/br_cmt.c
00140 c/ben_071.cfg c/global-vars.c
00141 c/ben_072.cfg c/deref.c
00142 c/ben_073.cfg c/type-cast.c
00143 c/ben_074.cfg c/t3.in.c
00144 c/ben_075.cfg c/align-proto-vars.c
00145 c/ben_076.cfg c/vardefcol.c
00146 c/Issue_3516.cfg c/Issue_3516.c
00147 c/Issue_3517.cfg c/Issue_3516.c
00148 c/Issue_3518.cfg c/Issue_3518.c
# casts
00150 c/ben_077.cfg c/casts.c
00151 c/cast-sp-r.cfg c/casts.c
00152 c/cast-sp-a.cfg c/casts.c
00153 c/cast-type.cfg c/casts.c
00154 common/sp_after_cast.cfg c/casts.c
00155 c/ben_078.cfg c/cast_brace.c
# fcn indents
00160 c/indent_func_param.cfg c/fcn_indent.c
00161 c/indent_func_call_param.cfg c/fcn_indent.c
00162 c/indent_func_def_param.cfg c/fcn_indent.c
00163 c/indent_func_proto_param.cfg c/fcn_indent.c
00164 c/rdan.cfg c/fcn_indent_func_def_col1.c
00165 c/sp_func_call_user_inside_fparen.cfg c/sp_func_call_user_inside_fparen.c
00170 common/empty.cfg c/beautifier-off.c
00180 c/sf538.cfg c/lvalue.c
# switch & case stuff
00201 c/case-1.cfg c/case.c
00202 c/case-2.cfg c/case.c
00203 c/case-3.cfg c/case.c
00204 c/bug_1718.cfg c/bug_1718.c
00205 c/nl_before_return_false.cfg c/case-nl_before_return.c
00206 c/nl_before_return_true.cfg c/case-nl_before_return.c
00207 common/nl_before_ignore_after_case.cfg c/nl_before_ignore_after_case.c
# structure initializers
00301 c/ben_079.cfg c/align-struct-init.c
00302 c/ben_080.cfg c/one-liner-init.c
00303 c/1liner-split.cfg c/one-liner-init.c
00304 c/1liner-no-split.cfg c/one-liner-init.c
00305 c/ben_081.cfg c/one-liner-define.c
00310 common/empty.cfg c/sp_embed_comment.c
00320 c/rdan.cfg c/indent_first_bool_expr.c
# aligning tresholds
00401 common/align-1.cfg c/align-equ.c
00402 common/align-1.cfg c/align-var.c
00403 c/align-2.cfg c/align-var.c
00404 c/align-3.cfg c/align-var.c
00405 c/align-3.cfg c/bits.c
00406 c/bug_i_771.cfg c/bug_i_771.c
00411 c/align_typedef_gap-3_span-5.cfg c/align-typedef.c
00412 c/align_typedef_gap-3_span-5.cfg c/align-typedef.c
00413 c/align_typedef_func-1.cfg c/align-typedef.c
00414 c/align_typedef_func-2.cfg c/align-typedef.c
00415 c/align_stack.cfg c/align_stack.c
00416 c/align_sf_call_thresh_416.cfg c/align_sf_call_thresh_416.c
00417 c/align_sf_call_thresh_417.cfg c/align_sf_call_thresh_417.c
00418 c/align_sf_call_span_418.cfg c/align_sf_call_span_418.c
00419 c/align_sf_call_span_419.cfg c/align_sf_call_span_419.c
00420 c/Issue-2278.cfg c/Issue-2278.c
00421 c/nl_ds_struct_enum_cmt-t.cfg c/nl_ds_struct_enum.c
00422 c/nl_ds_struct_enum-2.cfg c/nl_ds_struct_enum.c
00423 c/bug_1702.cfg c/bug_1702.c
00430 common/empty.cfg c/paren-indent.c
00431 c/indent_paren_close-1.cfg c/paren-indent.c
00432 c/indent_paren_close-2.cfg c/paren-indent.c
00440 c/bug_489.cfg c/bug_489.c
00451 c/code_width-80.cfg c/enum_gallery.c
00452 c/nl_enum_own_lines-a.cfg c/enum_gallery.c
00453! c/nl_enum_own_lines-3.cfg c/enum_gallery.c
00454 c/nl_enum_own_lines-4.cfg c/enum_gallery.c
00461 c/align_func_proto_star_amp-1.cfg c/align_func_proto_star_amp.h
00462 c/align_func_proto_star_amp-2.cfg c/align_func_proto_star_amp.h
00463 c/align_func_proto_star_amp-3.cfg c/align_func_proto_star_amp.h
00464 c/align_func_proto_star_amp-4.cfg c/align_func_proto_star_amp.h
00465 c/align_func_proto_star_amp-5.cfg c/align_func_proto_star_amp.h
00466 c/align_func_proto_star_amp-6.cfg c/align_func_proto_star_amp.h
00467 c/align_func_proto_star_amp-7.cfg c/align_func_proto_star_amp.h
00468 c/align_func_proto_star_amp-8.cfg c/align_func_proto_star_amp.h
00469 c/align_func_proto_star_amp-9.cfg c/align_func_proto_star_amp.h
# boolean and comma positioning
00501 c/bool-pos-eol.cfg c/bool-pos.c
00502 c/bool-pos-sol.cfg c/bool-pos.c
00503 c/pos_compare-sol.cfg c/pos_compare.c
00504 c/pos_compare-eol.cfg c/pos_compare.c
00505 c/pos_conditional-l.cfg c/pos_conditional.c
00506 c/pos_conditional-t.cfg c/pos_conditional.c
00510 c/bool-pos-eol-break.cfg c/bool-pos.c
00511 c/bool-pos-sol-break.cfg c/bool-pos.c
00512 common/bool-pos-eol-force.cfg c/bool-pos.c
00513 c/bool-pos-sol-force.cfg c/bool-pos.c
00514 c/my_conf.cfg c/my_infile.c
00600 common/indent_columns-3.cfg c/dos.c
00601 common/indent_columns-3.cfg c/mac.c
00611 common/empty.cfg c/pp-space.c
00612 c/pp-indent-2.cfg c/pp-space.c
00613 c/pp_indent-a.cfg c/pp-space.c
00614 c/pp-space.cfg c/pp-space.c
00615 c/pp-indent-2.cfg c/pp-nest.c
00616 c/pp_if_indent-1.cfg c/pp-if-indent.c
00617 c/rdan.cfg c/pp-if-indent.c
00618 c/pp_if_indent-4.cfg c/pp-if-indent.c
00619 c/Issue_3169.cfg c/Issue_3169.c
00620 c/ben_083.cfg c/indent-assign.c
00621 c/nl_endif.cfg c/nl_endif.c
00622 c/indent_assign.cfg c/indent-off-after-assign.c
00631 c/nl_assign1.cfg c/nl_assign.c
00632 c/nl_assign2.cfg c/nl_assign.c
00633 c/nl_assign1.cfg c/bug_3156.c
# function def newlines
00701 common/func-def-1.cfg c/function-def.c
00702 common/func-def-2.cfg c/function-def.c
00703 common/func-def-3.cfg c/function-def.c
00710 c/add_long_closebrace_comment_1.cfg c/add_long_comment.c
# nl_after_semicolon and nl_after_open_brace
00721 c/nl_semicolon.cfg c/nl-semicolon.c
# function types
00801 c/ben_084.cfg c/fcn_type.c
00802 c/ben_085.cfg c/funcfunc.c
00803 c/sf537.cfg c/fcn_type.c
# code width
00901 c/width.cfg c/code_width.c
00902 common/width-2.cfg c/code_width.c
00903 c/width-3.cfg c/code_width.c
# pascal ptr_type
00910 c/pascal_ptr.cfg c/pascal_ptr.c
00911 c/empty_body.cfg c/pascal_ptr.c
01000 c/mod-paren.cfg c/mod-paren.c
01001 c/nl-comment.cfg c/nl-comment.c
01002 c/mod-paren2.cfg c/mod-paren.c
01005 c/mod_case_brace_add.cfg c/mod_case_brace.c
01006 common/mod_case_brace_rm.cfg c/mod_case_brace.c
01007 c/mod_move_case_brace.cfg c/mod_case_brace.c
01008 c/mod_case_brace_add.cfg c/Issue_3366.c
01009 c/mod_move_case_return.cfg c/mod_move_case_return.c
01010 c/mod_move_case_return.cfg c/mod_move_case_return_bad.c
01011 common/del_semicolon.cfg c/semicolons.c
01012 c/ben_086.cfg c/semicolons.c
01015 common/empty.cfg c/paren_indent.c
01016 c/align_attr.cfg c/align_attr.c
01020 common/kw_subst.cfg c/kw_subst.c
01021 common/kw_subst3.cfg c/hello.c
01022 common/kw_subst3.cfg c/kw_subst.c
01030 c/cmt_indent_multi-f.cfg c/multi.h
01035 common/empty.cfg c/func_wrap.c
01036 common/sp_inside_fparen-f.cfg c/func_wrap.c
01037 c/type_wrap.cfg c/type_wrap.c
01040 c/newline_after_endif.cfg c/newline_after_endif.c
01050 c/func_call_user.cfg c/func_call_user.c
01060 common/empty.cfg c/backslash-newline-lex.c
01070 c/label_colon_nl_1.cfg c/various_colons.c
01071 c/label_colon_nl_2.cfg c/various_colons.c
01080 common/empty.cfg c/bug_1196.c
# big general tests
02000 c/ben_087.cfg c/i2c-core.c
02001 c/preproc-cleanup.cfg c/directfb.h
02002 common/ben2.cfg c/i2c-core.c
02003 c/Issue_3353.cfg c/Issue_3353.h
# clark's style - blank lines before and after flow control, indented comments
02100 common/clark.cfg c/i2c-core.c
02101 common/clark.cfg c/comment-indent.c
02200 c/xml-str.cfg c/xml.c
02201 c/xml-str.cfg c/align-string.c
02300 c/ben_088.cfg c/preproc-if.c
02301 common/d.cfg c/preproc-if.c
02302 c/cpp_to_c-1.cfg c/nl-cont.c
02303 c/cpp_to_c-1.cfg c/nl-cont2.c
02310 c/ben_089.cfg c/empty-for.c
02311 c/ben_090.cfg c/pragma.c
02315 c/pp_ret.cfg c/pp_ret.c
02320 c/nl_create_one_liner.cfg c/nl_create_one_liner.c
02325 common/sort_imports.cfg c/sort_include.c
02330 c/leave_one_liners.cfg c/one_liners.c
# some embedded sql stuff
02400 c/ben_091.cfg sql/mysql.sqc C
02401 c/ben_092.cfg sql/sta-select.sqc C
02402 c/issue_527.cfg sql/issue_527.sqc C
02410 c/pp_if_indent-0.cfg c/ifdef-indent.c
02411 c/pp_if_indent-1.cfg c/ifdef-indent.c
02412 c/pp_if_indent-2.cfg c/ifdef-indent.c
02413 c/pp_if_indent-3.cfg c/ifdef-indent.c
02414 c/nl_whole_file_ifdef.cfg c/whole_file_ifdef.c
02415 c/endif.cfg c/endif.c
02416 c/cmt_nl_end.cfg c/cmt_nl_end.c
02421 c/cmt_multi_check_last-f.cfg c/cmt_multi.c
02422 common/empty.cfg c/cmt_multi.c
02423 common/empty.cfg c/cmt_multi_utf8.c
02431 c/align_right_cmt_gap-1.cfg c/cmt_right_align.c
02432 c/space_indent_columns-3.cfg c/cmt_right_align.c
02440 common/empty.cfg c/string_utf8.c
02441 common/empty.cfg c/utf8-identifiers.c
02451 c/return-1.cfg c/nl_return_expr.c
02452 c/return-2.cfg c/nl_return_expr.c
02453 c/return-3.cfg c/nl_return_expr.c
02454 c/return-4.cfg c/nl_return_expr.c
02455 common/mod_paren_on_return-a.cfg c/macro-returns.c
02456 common/mod_paren_on_return-r.cfg c/macro-returns.c
02457 c/nl_before_return_true.cfg c/nl_before_return.c
02460 c/freebsd.cfg c/freebsd.c
02486 c/doxy-comment-no.cfg c/doxy-comment.c
02487 c/doxy-comment-yes.cfg c/doxy-comment.c
02501 c/ger.cfg c/custom_types_ssl.c
02502 c/custom_types_ssl.cfg c/custom_types_ssl.c
#02503 ger.cfg c/pp_concat_asn1.h
02504 c/align_keep_extra.cfg c/align_keep_extra.c
02510 c/ben_093.cfg c/asm.c
07630 c/indent-vbrace.cfg c/indent-vbrace.c
08399 c/ben_095.cfg c/gh399.c
09594 common/indent_columns-3.cfg c/sf594.c
09588 common/empty.cfg c/sf588.c
09601 c/sp_after_sparen.cfg c/sp_after_sparen.c
09602 common/bug_671.cfg c/bug_671.c
09603 c/indent_ternary_operator-1.cfg c/indent_ternary-1.c
09604 c/indent_ternary_operator-2.cfg c/indent_ternary-2.c
09605 common/sp_arith-f.cfg c/negative_value.c
09606 c/ptr-arith.cfg c/extern.c
09607 c/ptr-arith.cfg c/attribute.c
09608 common/aet-func_call_user.cfg c/func_call_user2.c
09609 c/Issue_2279.cfg c/Issue_2279.c
09610 c/force_tab_after_define-t.cfg c/bug_i_876.c
09611 common/space_indent_columns-4.cfg c/bug_i_222.c
09612 common/empty.cfg c/bug_1041.c
09613 common/empty.cfg c/i1413.c
09614 common/empty.cfg c/string_prefixes.c
09615 c/i1564.cfg c/i1564.c
09616 c/enum_comma_ifdef.cfg c/enum_comma_ifdef.c
09617 c/Issue_2360-a.cfg c/Issue_2360.c
09618 c/Issue_2360-b.cfg c/Issue_2360.c
09619 c/Issue_2411.cfg c/Issue_2411.c
09620 c/Issue_2640.cfg c/Issue_2640.c
09621 c/preproc-cleanup.cfg c/pp-before-func-def.c
09622 c/Issue_3356.cfg c/Issue_3356.c
10004 c/ben_094.cfg c/pragma_asm.c
10005 common/empty.cfg c/i1270.c
10006 c/bug_2331.cfg c/bug_2331.c
10007 c/indent_macro_brace-true.cfg c/indent-macro-brace.c
10008 c/indent_macro_brace-false.cfg c/indent-macro-brace.c
10009 common/empty.cfg c/return-compound-literal.c
10010 c/indent_compound_literal_return-false.cfg c/return-compound-literal.c
10011 c/indent_compound_literal_return-true.cfg c/return-compound-literal.c
10012 c/indent_sparen_extra-8.cfg c/sparen-indent.c
10013 common/empty.cfg c/sparen-indent.c
10014 common/indent_continue-8.cfg c/sparen-indent.c
10015 common/empty.cfg c/Issue_2845.h
10016 c/Issue_3233.cfg c/Issue_3233.c
10017 c/sp_sparen_paren-a.cfg c/double-sparen.c
10018 c/sp_sparen_paren-i.cfg c/double-sparen.c
10019 c/pp_indent_in_guard.cfg c/include-guard.h
10020 c/indent_single_line_comments_after.cfg c/single_line_comment_after.c
10021 common/sp_cparen_oparen-f.cfg c/parenthesized_indirect_call.c
10022 c/Issue_3269.cfg c/Issue_3269.c
10023 c/Issue_3272.cfg c/Issue_3272.h
10024 c/Issue_3274.cfg c/Issue_3274.c
10025 c/sp_between_semi_for_empty-r.cfg c/forever.c
10026 c/sp_between_semi_for_empty-i.cfg c/forever.c
10027 c/Issue_3327.cfg c/Issue_3327.c
10028 c/sp_emb_cmt-i.cfg c/Issue_3339.c
10029 c/sp_emb_cmt-f.cfg c/Issue_3339.c
10030 c/sp_emb_cmt-r.cfg c/Issue_3339.c
10031 c/sp_after_pointer_star-r.cfg c/Issue_3342.c
10032 c/sp_after_pointer_star-r.cfg c/Issue_3345.c
10033 c/pp_include_at_level-true.cfg c/Issue_3343.c
10034 c/pp_include_at_level-false.cfg c/Issue_3343.c
10035 c/indent_comment_align_thresh-0.cfg c/comment-indent.c
10036 c/Issue_3350.cfg c/comment-indent.c
10037 c/indent_case_comment-true.cfg c/Issue_3362.c
10038 c/indent_case_comment-false.cfg c/Issue_3362.c
10039 c/Issue_3370.cfg c/Issue_3370.c
10040 c/Issue_3377.cfg c/Issue_3377.c
10041 c/Issue_3351.cfg c/Issue_3351.c
10042 c/sp_ptr_star_func_var-i.cfg c/Issue_3376.c
10043 c/sp_ptr_star_func_var-a.cfg c/Issue_3376.c
10044 c/sp_ptr_star_func_var-r.cfg c/Issue_3376.c
10045 c/sp_ptr_star_func_var-f.cfg c/Issue_3376.c
10046 c/Issue_3402.cfg c/Issue_3402.c
10047 c/pp_if_indent_code-true.cfg c/Issue_3421.h
10048 c/Issue_3431.cfg c/Issue_3431.c
10049 c/indent_paren_close--1.cfg c/Issue_3436.c
10050 common/empty.cfg c/Issue_3192.c
10051 c/Issue_3454.cfg c/Issue_3454.c
10052 c/Issue_3472.cfg c/Issue_3472.c
10053 c/Issue_3476.cfg c/Issue_3476.c
10054 c/Issue_3480.cfg c/Issue_3480.c
10055 c/Issue_3493.cfg c/Issue_3493.c
10056 c/sp_enum_brace-i.cfg c/Issue_3496.h
10057 c/sp_enum_brace-a.cfg c/Issue_3496.h
10058 c/sp_enum_brace-r.cfg c/Issue_3496.h
10059 c/sp_enum_brace-f.cfg c/Issue_3496.h
10060 c/indent_ignore_bool-true.cfg c/Issue_3548.c
10061 c/Issue_3556.cfg c/Issue_3556.c
10062 c/Issue_3561.cfg c/Issue_3561.c
10063 c/Issue_3565.cfg c/Issue_3565.c
10064 c/Issue_3567-a.cfg c/Issue_3567.c
10065 c/Issue_3567-b.cfg c/Issue_3567.c
10066 c/Issue_3580.cfg c/Issue_3580.c
10077 c/Issue_3582.cfg c/Issue_3582.c
10078 c/pp_indent_brace--1.cfg c/Issue_3587.h
|