c/c++ source code browser comparison, seeking opinion [closed]

主宰稳场 提交于 2019-12-02 19:28:04

Another possibility (which take time and effort, but for such large code base, it is worth it) is to develop your own GCC plugin or extension to explore your particular code. The recent plugin ability in GCC enables power user to customize the behavior of the GCC compiler for their particular needs.

In particular, you might want to use GCC MELT, which is a high level domain specific language designed for GCC extensions. (MELT is implemented as a GCC plugin, it is free software, GPLv3+ licensed).

Disclaimer, I am the main author of GCC MELT, but I would be delighted to help you.

Basile Starynkevitch

We have a similar problem (1GB code base, 15k files) and actually Eclipse CDT works for us, if you give it enough memory. 1GB RAM dedicated for Eclipse seems to be the sweet spot.

If your problem is just searching the code, maybe our Source Code Search Engine will help. This tool indexes your code base using the language structure (lexemes), and then provides a facility to search the code base using that index, providing a GUI for composing queries, showing matches to the queries, and showing the actual code matched for any selected query.

It works for many languages, including C++. And it seems to be pretty useful on code bases like Linux, which is sort of the size you seem to have. The search capabilities arguably make it any easy way to "browse" the code.

I'll grant this this suffers identically from my objection to Doxygen (see comment in another answer). But then, it doesn't pretend to do name resolution at all.

Benjamin Bannier

Try doxygen with call and collaboration diagrams enabled. It should work fine even for large projects.

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