Possible Duplicate:
parser for c++ headers to extract functions with standard linux tools?
is there something like this? need to extract c++ functions from header files with all the parameters the开发者_运维问答y use. would be nice if i can use standard linux programms
You can use a program called 'understand 4 c++'. What it does is parse your program like a compiler. However instead of spitting out executable code, it just creates relationships that you can browse your source code (Like Intellisense in visual studio). However it is very powerful. The best and my favorite part is that it exposes a very powerful API that allows you to write your own static analysis tools.
So in essence, just dumping all function signatures in header files is a snap using this API.
精彩评论