Bug 187622

Summary: C++ Assistant should remove superflous whitespace when removing all function parameters
Product: [Applications] kdevelop Reporter: Thomas McGuire <mcguire>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist CC: aleixpol, jpmbatrina01
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Correct behavior in KDevelop 5.6.40

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!