Bug 135272

Summary: Formatting Error in C++ Code
Product: [Applications] kdevelop Reporter: Florian Goth <CaptainSifff>
Component: AstyleAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.3.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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