The barebones version of a .cpp file is often not much more than a copy of the related header file with some braces instead of semicolons, ClassName::
inserted in a few places, and removing the virtual
keyword. Much of it could be generated with a one-line sed
command, but it wouldn't be very robust for all the language features (templates come to mind).
Before I go write my own, are there any simple command-line utilities that will take a header file I provide and give me a skeletal .cpp file where I can fill in the blanks?