Bug 91316 - code beautifier dosn't work with a method called "remove()"
Summary: code beautifier dosn't work with a method called "remove()"
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: 3.1.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 14:42 UTC by Andreas Pietzowski
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 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