I have a list of fields extracted from a C/C++ code base. I have to analyze the source files to check which fields are modified or used by which functions. The tool I used for fields extraction is Exuberant CTAGS which gives a list of fields and functions after analyzing a code file independently. Any ideas/suggestions are welcome, if there are any tools out there that can be used to achieve the functionality or if some built-in functionality of some development tool like Visual Studio can help.
-
I'm guessing you won't find tools based on ctags to do this, but you might be better served looking for things in the LLVM/clang ecosystem.– einpoklumCommented Apr 2, 2017 at 7:31
-
What do you mean, "files modified by functions"?– einpoklumCommented Aug 15, 2017 at 21:32
-
FIELDS, or variables.– Taha Rehman SiddiquiCommented Aug 16, 2017 at 15:14
Add a comment
|
2 Answers
You can try CppDepend, it can report you what you want and you can customize its cqlinq queries to query as you want the codebase.
I achieved it by writing a mini-parser which parses source files to provide a list of functions and all fields modified by them.
-
2This is not a SR style answer. OP is looking for something he can get, not something you have ih a directory on some machine you own. The "accepted as best answer" is self-serving nonsense. Commented Oct 9, 2017 at 12:26