On Mon, Sep 11, 2017 at 09:21:21PM -0400, Charlie Sale wrote: > I am using your program to indent my C++ source code because I wanted to > standardize the formatting of my project. > indent is not desinged for C++ language. It aims to C language only. It does not matter in this special case, but in general you could find some undesired behavior on you C++ code.
> An issue that I encountered was this: my variable declaration and > assignments were placed on different lines. What I mean by this is that > this would happen: > > Before > --------- > int my_variable = some_function_or_variable(); > > After > ------ > int > my_variable = some_function_or_variable (); > > Desired Result > -------------------- > int my_variable = some_function_or_variable (); > > I tried using the -di1 option to keep everything on the same line, but it > did not work. > > However, this may be the indented use of the program. In that case, please > let me know. If not, is there a way I could keep everything on the same > line? Thanks! > Try --no-space-after-function-call-names option. -- Petr
signature.asc
Description: PGP signature
_______________________________________________ bug-indent mailing list bug-indent@gnu.org https://lists.gnu.org/mailman/listinfo/bug-indent