Example: 整形前
int main(void)
{
int i;
switch (i) {
case 0:
printf("case 0\n");
break;
default:
{
printf("default\n");
break;
}
}
return 0;
}
--indent-cases--indent-cases は case/default 内の処理が括弧で囲まれている場合は括弧を indent する
Example: --indent-cases
int main(void)
{
int i;
switch (i) {
case 0:
printf("case 0\n");
break;
default:
{
printf("default\n");
break;
}
}
return 0;
}
--indent-switches--indent-switches は switch 以下の case/default を indent する
Example: --indent-switches
int main(void)
{
int i;
switch (i) {
case 0:
printf("case 0\n");
break;
default:
{
printf("default\n");
break;
}
}
return 0;
}
0 件のコメント:
コメントを投稿