Re: Possible Bug?
Petr Pisar <[email protected]> Wed, 13 Sep 2017 09:19:14 +0200
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <20170913071914.GB3246@album> |
--===============5773846748574589843== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uZ3hkaAS1mZxFaxD" Content-Disposition: inline --uZ3hkaAS1mZxFaxD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 undesir= ed 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: >=20 > Before > --------- > int my_variable =3D some_function_or_variable(); >=20 > After > ------ > int > my_variable =3D some_function_or_variable (); >=20 > Desired Result > -------------------- > int my_variable =3D some_function_or_variable (); >=20 > I tried using the -di1 option to keep everything on the same line, but it > did not work. >=20 > 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! >=20 Try --no-space-after-function-call-names option. -- Petr --uZ3hkaAS1mZxFaxD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABEIAB0WIQRLUoOT5qOw37LvOmQSycXHZ8b6ogUCWbjb8gAKCRASycXHZ8b6 orMfAP9Kyz3kgdF9yAaFq5sL39bntqNCIeHC2NhtG+4QDVU7awD8CZqOZbH1MogA HCZ7+RKEoX9E1oway/qV1t590ABFAcc= =si3i -----END PGP SIGNATURE----- --uZ3hkaAS1mZxFaxD-- --===============5773846748574589843== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ bug-indent mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-indent --===============5773846748574589843==--