I was wondering if there was a tool (maybe GNU C++ compiler) to obtain from a .cpp file
full of functions a .hpp file with the mentioned functions declarations.
Example:
I have:
magic.cpp
int foo() { return 42; }
char bar() { return 'z'; }
And I would like to obtain this after applying the wonderful tool:
magic.hpp
int foo();
char bar();
Please see Dehydra or Treehydra. One of these two tools should allow you perform this via GCC.