Bug 70071 - I would like to see a auto-format customization item to control alignment of parameters for function definitions.
Summary: I would like to see a auto-format customization item to control alignment of ...
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.0.0b2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 00:11 UTC by Robert Shideleff
Modified: 2008-06-29 17:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Shideleff 2003-12-11 00:11:24 UTC
Version:           3.0.0b2 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
OS:          Linux (i686) release 2.4.23

In Beta 1, the auto-format feature would align parameters of a function after the opening parenthesis as in:

foobarfoobar(int param1,
.............int param2,
.............int param3) 
 
In Beta 2, this changed so that the function definition comes out like: 
 
foobarclass::foobarfoobar(int param1, 
....int param2, 
....int param3) 

Which makes the format function useless to me because of company formatting standards. I'd like to see a customization option to support both methods, since this is obviously a matter of taste.
 
(In the above examples, I replaced the white space with periods.)
Comment 1 Amilcar do Carmo Lucas 2003-12-11 11:37:47 UTC
Which Text editor? KATE or QEditor.

Are you talking about a Qeditor feature or about the "reformat source" item on the edit menu?

AFAIK none of this code was touched beteewn b1 and b2 !
Comment 2 Robert Shideleff 2003-12-11 17:18:33 UTC
Subject: Re:  I would like to see a auto-format customization item to control alignment of parameters for function definitions.

The 'reformat source' item in the edit menu. The shortcut I normally use is 
ALT-F, although I can't remember if this is a default, or something I 
customized. The reason I noticed is that the behavior changed for a bug I had 
reported before (recently closed) which was that C type functions and C++ 
functions behaved differently. This bug was fixed in B1 to work one way, and 
then behavior changed to the other way in B2. Actually, I think both ways are 
reasonable, I just happen to have to follow a code standard that goes as 
described above. Hence the wish item.

On Thursday 11 December 2003 05:37 am, Amilcar do Carmo Lucas wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=70071
>
>
>
>
> ------- Additional Comments From a.lucas@tu-bs.de  2003-12-11 11:37 -------
> Which Text editor? KATE or QEditor.
>
> Are you talking about a Qeditor feature or about the "reformat source" item
> on the edit menu?
>
> AFAIK none of this code was touched beteewn b1 and b2 !
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/2Jjd8XjOGQDr37YRAtI+AJwNhcn/YM2CYL5wlo2o+rfuhNTcYwCffFeT
CnpCyiTKU6o0Aq25IHggBd0=
=rlwx
-----END PGP SIGNATURE-----

Comment 3 Andreas Pakulat 2008-06-29 17:07:40 UTC
This is an astyle bug/wish and as such should be filed upstream.