Bug 81586

Summary: Incorrect formatting of classes with inline functions
Product: [Applications] kdevelop Reporter: Chris Jefferson <caj>
Component: AstyleAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.0.3   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Chris Jefferson 2004-05-14 16:55:22 UTC
Version:           3.0.3 (using KDE KDE 3.2.2)
Installed from:    Mandrake RPMs
OS:                Linux

I'm suprised this doesn't seem to be in the database. Maybe I couldn't find it..

When formatting with ANSI or K&R, when an inline function is the last thing in a class definiton the final semi-colon is placed on a line by itself.

Example:

class a
{
    int b(int x)
    {}
    int i;
};

But remove the int i...

class a
{
    int b(int x)
    {}
}
;

Also, in K&R:
class a {
    int b(int x) {}
    int i;
};

but

class a {
    int b(int x) {}
}
;


Any chance of getting rid of this annoying slippery bugger?
Comment 1 Jens Dagerbo 2006-12-16 18:14:22 UTC
Can't reproduce on 3.4 RC2.
Comment 2 Jens Dagerbo 2006-12-16 19:37:44 UTC
AFAICT, the semicolon stays in place now. 

Closing as FIXED.