Hi ,I'm using AStyle with this configuration file to format a C application code :
--style=ansi
--indent=spaces=2
--indent-switches --min-conditional-indent=0 --max-instatement-indent=60
--indent-preproc-block
--indent-preproc-define
--pad-oper --pad-header --unpad-paren --align-pointer=name
--add-brackets --convert-tabs
--lineend=linux
--max-code-length=120
--suffix=.orig
****what I found instead of indenting the entire case block :
switch (foo)
{
case 1:
a += 1;
break;
case 2:
{
a += 2;
break;
}
}
****what i supposed get:
switch (foo)
{
case 1:
a += 1;
break;
case 2:
{
a += 2;
break;
}
}