开发者

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

开发者 https://www.devze.com 2023-04-02 17:13 出处:网络
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

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开发者_Python百科 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消