[Bug 65393] New: Autoformat aligns c++ class function declarations incorrectly. (Differently than non-class declarations.)

Robert Shideleff bigbob at shideleff.com
Thu Oct 2 20:55:07 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=65393     
           Summary: Autoformat aligns c++ class function declarations
                    incorrectly. (Differently than non-class declarations.)
           Product: kdevelop
           Version: 3.0.0a7
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: bigbob at shideleff.com


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.)




More information about the KDevelop-devel mailing list