Necktwi
Necktwi

Reputation: 2617

how do I set space between function name and parenthesis with gnu indent?

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

Answers (2)

-pcs is the switch that adds space after the name of a function. Thus -kr -pcs will do what you want.

Upvotes: 1

zwol
zwol

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

Related Questions