Bug 363057 - Problem with Auto-Completion in cpp file, when trying to implement function defined in .h file
Summary: Problem with Auto-Completion in cpp file, when trying to implement function d...
Status: RESOLVED DUPLICATE of bug 384710
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-14 06:28 UTC by Sumeet Tulsani
Modified: 2018-10-19 16:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***