Bug 81586 - Incorrect formatting of classes with inline functions
Summary: Incorrect formatting of classes with inline functions
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.0.3
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 16:55 UTC by Chris Jefferson
Modified: 2006-12-16 19:37 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 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.