I have several empty inline function definitions in C++ like so:class C{    void foo(){}    void bar(){}};now if I run indent -st -i4 -nut test.cc in order to just fix the indentation I get class C{    void foo ()    {    }    void bar ()    {    }};But I just want to fix the indentation without moving curly braces around!How can I achieve that?
How do I keep 'indent' from moving curly braces to the next line?
text processing;c;programming;indentation
Looking at man indent I see using -brf will put braces on the function definition line. If you want it on the if-line as well, you'll need -br.If your PAGER environment variable is less you can search through man indent with / and the text. So if you do man indent, followed by /braces<ENTER> You'll be able to hop between matches that are informative to you by pressing n repeated.Edit to make my comment below clearer, this is what I see in man indentThe `-brf option formats braces like this:        int one(void) {          return 1;        };The `-blf option formats them like this:        int one(void)        {          return 1;        };