Bug 363057

Summary: Problem with Auto-Completion in cpp file, when trying to implement function defined in .h file
Product: [Applications] kdevelop Reporter: Sumeet Tulsani <sumeettulsani1>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: amhndu
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sumeet Tulsani 2016-05-14 06:28:00 UTC
I have declared a header file named ‘foo.h’ having a constructor and a function declared  which returns int type data as shown below:

class Foo()
{
	public:
		Foo();
		int foo_func();
};

When I try to implement the function in ‘foo.cpp’ I type int the return type of ‘foo_func’ then I get a auto completion box having an option for ‘foo_func'.
But, when I select the option it gives ‘int int foo_func()’ instead of ‘int foo_func()’.  


Reproducible: Always


Actual Results:  
#include <iostream>

#include “foo.h”

Foo::Foo()
{}

int int Foo::foo_func()
{
     return 1;
}

Expected Results:  
int Foo::foo_func()
{

}
Comment 1 Amish Naidu 2018-10-19 16:30:39 UTC

*** This bug has been marked as a duplicate of bug 371217 ***
Comment 2 Amish Naidu 2018-10-19 16:53:14 UTC

*** This bug has been marked as a duplicate of bug 384710 ***