Bug 92342 - Source formatter inlines every line one more time more then the previous one
Summary: Source formatter inlines every line one more time more then the previous one
Status: RESOLVED DUPLICATE of bug 89140
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-29 20:18 UTC by Hasan Ceylan
Modified: 2006-10-15 07:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hasan Ceylan 2004-10-29 20:18:30 UTC
Version:           3.3.0 (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

Hi,

Although not critical, I am having a problem with the source formatter. If there is a struct in the source then this gets screwed up. Because my English is not good enough to describe that problem I am gonna give an example right away...

This:

struct test
{
        int a;
        int b;

};


static struct test test_instance  = {
        .a = 1,
        .b = 2
};


>>>> becomes :

struct test
{
        int a;
        int b;

};


static struct test test_instance =
        {
                .a = 1,
                     .b = 2
                  };

I have recently started using the source formatter feature and it is clearly a killer feature. 

I would love to see it fixed. 

If you can give me some directions in the source code I, myself too try to fixed it.

Regards,
Hasan Ceylan
Comment 1 Jens Dagerbo 2004-10-29 21:32:59 UTC
KDevelop uses the astyle library (http://astyle.sf.net/) which sadly seems to have stopped being maintained. In the KDevelop source you can find it in kdevelop/lib/astyle
Comment 2 Hasan Ceylan 2004-10-31 01:15:27 UTC
That's bad news. Is there any plan to move on to a different source formatter. 
Given the pace open software development currently has, I am sure there is newer
and (maybe) better alternatives.

Thanks for the prompt response and the quality application for the kdevelop guys!

Hasan Ceylan
Comment 3 Matt Rogers 2005-10-20 02:32:49 UTC
what are the dots for in the static struct? 
Comment 4 Matt Rogers 2006-10-15 07:00:14 UTC
Bug #89140 and this bug are the same problem. Basically, the use of the equals sign confuses astyle.

*** This bug has been marked as a duplicate of 89140 ***