[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-bfde parameter does not work as advertised
From: |
Matt Olson |
Subject: |
-bfde parameter does not work as advertised |
Date: |
Wed, 29 Apr 2015 23:56:43 -0700 |
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- -bfde parameter does not work as advertised,
Matt Olson <=