The --add-braces and --add-one-line-braces doesn't work to multi-line sources belonging to one statement.
Sample input a.c
int main(int argc, char **argv)
{
if (argc < 4)
fprintf(stdout,
"help info\n");
return 0;
}
Expected output with AStyle.exe --add-braces --add-one-line-braces a.c is as follows:
int main(int argc, char **argv)
{
if (argc < 4)
fprintf(stdout,
"help info\n");
return 0;
}
However, the output didn't change at all with these parameters. Is there any parameters for fixing this format? Thanks.
I'm very sorry to make a mistake on the expected output.
Here is my expected output with
AStyle.exe --add-braces --add-one-line-braces a.c: