Reputation: 2617
With gnu-indent
how to change
int i = fact(n);
to
int i = fact (n);
-gnu
formats it so but I use -kr
.
Upvotes: 0
Views: 253
Reputation: 133988
-pcs
is the switch that adds space after the name of a function. Thus -kr -pcs
will do what you want.
Upvotes: 1
Reputation: 140768
I believe the option you want is -pcs
or, in long form, --space-after-procedure-calls
. The most convenient place to find this information is the long list of options to GNU indent from its official manual.
Upvotes: 1