Bug 65393

Summary: Autoformat aligns c++ class function declarations incorrectly. (Differently than non-class declarations.)
Product: [Applications] kdevelop Reporter: Robert Shideleff <bigbob>
Component: AstyleAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 3.0.0a7   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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.