Bug 70244

Summary: Make Member (F2) may misplace code
Product: [Applications] kdevelop Reporter: Daniel Franke <franke.daniel>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: bluedzins, bugs.kde.org, greatbunzinni
Priority: NOR    
Version: 3.0.0b2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed In:

Description Daniel Franke 2003-12-12 20:01:26 UTC
Version:           3.0.0b2 (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          SunOS (sun4u) release 5.8

--
namespace foo {
// any class members here
}; // end of namespace 'foo'
--

Add a new member 'bar' to class 'xyz' and 'Make Member' (F2):
--
namespace foo {
// any class members here
};

void foo::xyz::bar( )
{
} // end of namespace 'foo'
--

Uops!
One would expect to place the member either in the namespace, or after the comment?!
Comment 1 Jens Dagerbo 2004-09-09 21:03:19 UTC
*** Bug 89075 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Franke 2005-01-14 13:41:06 UTC
Still valid in kdevelop-3.1.91, KDE-3.3.91, CVS 050113
Comment 3 Amilcar do Carmo Lucas 2005-01-14 14:34:28 UTC
Daniel seams to be a very good user. I trush him.
Comment 4 greatbunzinni 2005-09-18 13:16:16 UTC
His happens not only with namespaces but also with the positioning of the new member. Sometimes the new member is even inserted in the begining of the implementation file, above the licensing text and above the #include compiler directive.
Comment 5 Alexander Dymo 2007-01-06 12:55:54 UTC
*** Bug 112551 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Pakulat 2008-07-05 20:53:28 UTC
wont be fixed in kdevelop3 and the functionality hasn't been ported to kdevelop4. Please re-open if we manage to re-introduce this in kdevelop4 once make-member is available there.
Comment 7 Andreas Pakulat 2008-07-05 20:55:29 UTC
I've changed my mind. better to leave it open and close it as fixed once we support make member in kdevelop4.
Comment 8 groot 2008-12-15 16:30:26 UTC
Not Solaris specific.
Comment 9 Andreas Pakulat 2009-01-23 22:37:49 UTC
We don't have make member yet, but kdev4 auto-completes member functions that have a declaration but no completion when you're outside of a function. That works properly with namespaces already.