Bug 70244 - Make Member (F2) may misplace code
Summary: Make Member (F2) may misplace code
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 3.0.0b2
Platform: Compiled Sources All
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 112551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-12 20:01 UTC by Daniel Franke
Modified: 2009-01-23 22:37 UTC (History)
3 users (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 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.