-wtc=0 -dtc : delete all trailing commas
-wtc=1 -atc : put trailing commas on all lists
- -wtc=m -atc : all multi-line lists get trailing commas;
+ -wtc=m -atc : all multi-line lists get trailing commas, and
single line lists remain unchanged.
+ -wtc=m -dtc : multi-line lists remain unchanged, and
+ any trailing commas on single line lists are removed.
-wtc=m -atc -dtc : all multi-line lists get trailing commas, and
any trailing commas on single line lists are removed.
} ## end for ( my $i = 0 ; $i <=...)
# Break at a single interior C-style for semicolon in this batch (c154)
- if ( @i_for_semicolon == 1 ) {
+ if ( @i_for_semicolon && @i_for_semicolon == 1 ) {
my $i = $i_for_semicolon[0];
my $inext = $inext_to_go[$i];
if ( $inext <= $max_index_to_go && $types_to_go[$inext] ne '#' ) {