Bug 187622 - C++ Assistant should remove superflous whitespace when removing all function parameters
Summary: C++ Assistant should remove superflous whitespace when removing all function ...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 18:28 UTC by Thomas McGuire
Modified: 2021-08-03 09:53 UTC (History)
2 users (show)

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


Attachments
Correct behavior in KDevelop 5.6.40 (167.83 KB, video/webm)
2021-08-03 09:53 UTC, Jan Paul Batrina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2009-03-19 18:28:36 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

This is a real nitpick, but anyway:

Say the .h has the following function

void foo( int bar );

And the .cpp has the implementation:
void foo ( int bar )
{
  [..]
}

Now if you remove the argument from the implementation, the assistant offers to update the declaration, which is really really nice.

However, it has superflous whitespace in the .h, like this:
void foo(  );

It should be:
void foo();
Comment 1 Aleix Pol 2013-04-11 14:04:32 UTC
It still happens.
Comment 2 Jan Paul Batrina 2021-08-03 09:53:39 UTC
Created attachment 140480 [details]
Correct behavior in KDevelop 5.6.40

Seems to have been fixed!