Bug 65393 - Autoformat aligns c++ class function declarations incorrectly. (Differently than non-class declarations.)
Summary: Autoformat aligns c++ class function declarations incorrectly. (Differently t...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.0.0a7
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-02 20:54 UTC by Robert Shideleff
Modified: 2003-12-11 00:05 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-10-02 20:54:19 UTC
Version:           3.0.0a7 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
OS:          Linux (i686) release 2.4.22

The auto-formatter is inconsistant in the way it indents function declarations. Standard C type functions will be formatted with all parameters aligned with the opening parenthesis. (Which is in my humble opinion the correct behavior):

foobarfoobar(int param1,
.............int param2,
.............int param3)

C++ Class function declarations are formatted differently with the parameters simply indented an equal space from the left. (Not aligned with the opening parens)

foobarclass::foobarfoobar(int param1,
....int param2,
....int param3)

(In the above examples, I replaced the white space with periods.)
Comment 1 Robert Shideleff 2003-12-11 00:05:44 UTC
This problem has been fixed.