问题
I need to get the static information of C++ program with CDT. No need to build the project, just to get the basic information(namespace, class, extends relation, method, call, field) and save them to database. Is there any code examples or opensource plugin? thx!
I have tried a lot of methods but they do not work very well. someone says that codan is a choice, but it doesn't work on my environment...
PS: CDT is necessary. I use Eclipse Indigo.
回答1:
Eclipse CDT has already built-in tools for extends relation, method call. It is Type Hierarchy view and Call Hierarchy view. You have to build Index of your project for all this tools to work.
来源:https://stackoverflow.com/questions/7324914/how-to-do-static-analysis-for-c-code-with-eclipse-cdt