Getting rid of writting C++ boilerplate code

Jakob Petsovits jpetso at
Mon Jul 3 19:57:29 BST 2006

On Friday, 30. June 2006 10:38, Frank Sonntag wrote:
> one annoying "feature" of C++ is that you have to duplicate code, when you
> separate definition from declaration.
> I think it would be nice if kdevelop could help here by automatically
> adding code.
> Let's say you add a new function declaration to a class. The plug-in would
> then add an empty definition to the definition file.

Already there: it's in the context menu of the function declaration and is 
called "Make member".

> It would also be nice if later the code would be kept in sync, so that you
> never have to do a change twice.

This would be cool, right.

> Does that sound feasible (and sensible)?

Sounds great, I'm all for it!

> If nobody is already working on such a plug-in, I would be interested to do
> it myself and would appreciate any suggestions as to what existing code
> might helpful (e.g. because it keeps track of symbols or the like).

hm, no, I'm not yet familiar with the concerned code.
will be in 1 or 2 months ;-)


More information about the KDevelop mailing list