Hello Everyone at GNU Indent.

I am using your program to indent my C++ source code because I wanted to
standardize the formatting of my project.

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!

Charlie Sale
_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to