| 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 First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
*** This bug has been marked as a duplicate of bug 371217 *** *** This bug has been marked as a duplicate of bug 384710 *** |
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() { }