Bug 135272 - Formatting Error in C++ Code
Summary: Formatting Error in C++ Code
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.3.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-08 01:10 UTC by Florian Goth
Modified: 2006-10-15 15:30 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 Florian Goth 2006-10-08 01:10:03 UTC
Version:           3.3.4 (using KDE 3.5.4, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.18-gentoo

The Reformat Source Option makes an error in Reformatting:
The following Code:

void A(list<uint>* Vertexindices)
{
    for ( list < uint >::iterator l = Vertexindices->begin(); l != Vertexindices->end(); ++l)
    {}
    return;
}
gets Reformatted to:

void A(list<uint>* Vertexindices)
{
    for ( list < uint >::iterator l = Vertexindices->
                                      begin();
            l != Vertexindices->end();
            ++l)
    {}
    return;
}
Comment 1 Matt Rogers 2006-10-15 15:30:47 UTC
Fixed in the KDevelop 3.4 branch as part of this commit:

SVN commit 595657 by dymo:

Applied patch from Megan Webb:
Update to the astyle plugin to use astyle v1.19
Changes:
- layout of the formatting dialog has changed to mirror the astyle
command line options help.
- all options from commandline astyle can be set.
- interactive display of most options selected.
- tooltips for all options