PS C:\Users\m\Desktop> & 'C:\Program Files (x86)\GnuWin32\bin\indent.exe'
-version
GNU indent 2.2.10


From the manual:
<snip>

With the ‘-bfda’ option this would look like


void foo (
    int arg1,
    char arg2,
    int *arg3,
    long arg4,
    char arg5);

With, in addition, the ‘-bfde’ option this would look like


void foo (
    int arg1,
    char arg2,
    int *arg3,
    long arg4,
    char arg5
    );

<snip>

whereas, the bfde option actually produces the following:

void foo (
    int arg1,
    char arg2,
    int *arg3,
    long arg4,
    char arg5
);


-----------------------------------------------------------

Also, I've got a couple of questions:

1) Is it currently possible to do the following? (in plain english, if
the function call doesn't fit on one line, indent the function and put
it on its own line with args, and if that still doesn't fit, indent
all parameters one more level).

ReturnValue =
    ExampleFunction(
        arga, argb, argc, argd,
        arge, argf, argg);

indent only seems to provide the following:

ReturnValue = ExampleFunction(arga, argb, argc, argd,
                              arge, argf, argg);



2) Is it currently possible to move end-of-line comments to their own
lines? I'd like to convert the following:

a = 2; // N.B.: a is expected to be even.

to:

// N.B.: a is expected to be even.
a = 2;
_______________________________________________
bug-indent mailing list
bug-indent@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to