How to do static analysis for C++ code with Eclipse cdt?

99封情书 提交于 2019-12-23 05:59:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!