有没有一种工具只显示给定源文件的函数原型?我知道 Doxygen 正在做这样的事情,但我发现的是一个简单的 Linux 命令,例如
$ filter-function-prototypes main.c
1: print_hello()
2: main()
其中 main.c 给出为
#include <stdio.h>
void print_hello() {
printf("hello, world\n");
}
int main()
{
print_hello();
}