On May 22, 5:51 pm, Pete Becker <p...@versatilecoding.comwrote:
Paavo Helde wrote:
C++ lets you declare functions in headers which are actually not
defined in the source code. During a cleanup cycle for a library I
would like to ensure that all free and member functions advertised in
the library header files are actually defined inside the library. I
could imagine a utility which processes the header files and spits out
a piece of code which takes the address of each declared function.
Missing definitions would then show up as linkage errors.
Anybody know if such or a similar utility exists?
If your test suite calls a function that hasn't been implemented you'll
get an error.
That's a good advice and in longer term perspective I am certainly
trying to follow that. However, currently there is no such
comprehensive test suite and too little time left (as always). I have
been cleaning up the code, put the functions in the right namespaces
and regularized the function signatures. This means that the function
might be there and working well as before, but because of slight
changes in namespaces and argument types it is not "connected" to the
header declaration any more. I was hoping there is a handy utility
which just lists me the functions which I have failed to synchronize
properly.
Best regards
Paavo