是否有任何种类的工具只显示给定源文件的函数原型? 我知道Doxygen的是做这样的事情,但我觉得是一个简单的Linux命令,如函数原型过滤器
$ filter-function-prototypes main.c
1: print_hello()
2: main()
其中作为
#include <stdio.h>
void print_hello() {
printf("hello, world\n");
}
int main()
{
print_hello();
}
也许可以用'grep'或类似的工具来完成。 – 2013-04-05 10:55:22
查看相关问题http://stackoverflow.com/questions/1570917/extracting-cc-function-prototypes – user1929959 2013-04-05 10:56:23
很容易为这个 – 2013-04-05 11:01:53