开发者

Export function lists (with parameters) from lots of C files

开发者 https://www.devze.com 2022-12-11 02:14 出处:网络
I have an old VC 6.0 project with lots of C files. I need to document all the methods with their signatures, for example, l开发者_StackOverflow中文版isted them in a txt file like:

I have an old VC 6.0 project with lots of C files. I need to document all the methods with their signatures, for example, l开发者_StackOverflow中文版isted them in a txt file like:

LoadTranCde(LKFD lkfd, char * msg, char * code)

MoveBack(LPT lStm, int numRows)

RTrim(Char * paraString)
....

The function list can be easily viewed in Visual Studio class view like:

http://www.freeimagehosting.net/uploads/9ed31de51c.jpg

But I need to find a way to export this list, anybody has good solution?

Thank you guys very much !


Have you tried doxygen yet? It may be overkill for what you're doing, but it's a great, automated way of parsing out function signatures, comments, type definitions, etc. from source code. It can do much more if you put in the time to structure code comments in a particular way, but right out of the box it should be able to give you the output you're looking for. You may need to do some post-processing of the text in order to strip away anything unnecessary that doxygen produces.

0

精彩评论

暂无评论...
验证码 换一张
取 消