[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible Bug?
From: |
Petr Pisar |
Subject: |
Re: Possible Bug? |
Date: |
Wed, 13 Sep 2017 09:19:14 +0200 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
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
- Possible Bug?, Charlie Sale, 2017/09/12
- Re: Possible Bug?,
Petr Pisar <=