I am looking for a good tool or library that takes a C/Cpp/header file and generates xml for the functions in that file.
So Perhaps
float foo(int bar, char* str);
would turn into
<function name="foo" returntype="float">
<params>
<param dataType="int">bar</param>
<param dataType="char*">str</param>
</params>
</function>
This is likely a stupid question, I looked through visual studio, found some things on C Sharp and VB. Sadly, Googling C++/C and XML in the same line turns up almost entirely posts on C++ Generating XML from other files.
I all else fails I can write my own, just wondering if there was a good tool out there that I had not heard of.
Take a look at Doxygen.
Among other things, it can generate XML. IIRC you can configure Doxygen to produce XML even for functions without specially formatted comments, if that’s what you want.