Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有工具可以从源代码中的给定结构或类中提取成员变量?我期待的是以下
假设 target.c 如下:
#include <stdio.h> struct A { int a; int b; }; int main() { blah... }
而且,如果我在 bash 中做类似的事情:
$ extract-member target.c A struct A member list: - int a; - int b;
有没有像“提取成员”这样的工具?
诸如 ctags、doxygen、gccxml 之类的程序都提供了解决此问题的方法……您可能想在线阅读它们并决定哪种方法适合您的需求。