bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible Bug?


From: Charlie Sale
Subject: Possible Bug?
Date: Mon, 11 Sep 2017 21:21:21 -0400

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]