I m trying to configure uncrustify (a source code beautifier) to
avoid aligning beneath a previous open parenthesis. For
example, I d like the code to look like this (from file
indent_paren.c
):
void f(void)
{
while (one &&
two)
{
continue;
}
}
When I run uncrustify on the above code, the line two)
indents to align with the (
from the line above:
void f(void)
{
while (one &&
two)
{
continue;
}
}
I m using the latest version of uncrustify (0.59) compiled from
source, with the following configuration settings for this test
(in file indent_paren.cfg
):
indent_with_tabs = 0
indent_columns = 4
indent_paren_nl = false
indent_bool_paren = false
I m 援引以下术语:
uncrustify -c indent_paren.cfg indent_paren.c
I found the same behavior with version 0.56 (installed from the repository for Ubuntu 11.04). Am I using the wrong configuration settings, or is something else wrong here? Thanks for any help.