Bug 91316

Summary: code beautifier dosn't work with a method called "remove()"
Product: [Applications] kdevelop Reporter: Andreas Pietzowski <andreas>
Component: AstyleAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.1.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas Pietzowski 2004-10-14 14:42:21 UTC
Version:           3.1.1 (using KDE 3.3.1, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.4-52-default

Hi,

I use the code-beatifier within Kdevelop and everything works fine but when I have a method called

if ( a->remove() ){
  ...
}

the beautifier produces this:

if ( a->remove
         () ) {
    ...
}

Shouldn't be, right? It only happens when a method is called "remove" without a parameter! Maybe you can fix this small bug in a future release. Nice application anyway! Keep on the good work!

Nice day
Pietz
Comment 1 Matt Rogers 2004-12-14 19:22:17 UTC
it happens because of the bracket on the same line. 
Comment 2 Matt Rogers 2006-10-15 15:30:50 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