We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed last year.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我投票给 gnu global。它结合了 ctags/cscope 的所有功能,并且可以生成完全索引的 html,使您可以在您喜欢的浏览器中浏览代码。在 apache 中启动它,您就拥有了任何人都可以访问的 Web 服务,包括完整的搜索功能。
它很好地集成到 emacs/vim/甚至 bash-shell 中,您可以直接从 shell 提示符中使用它。
要查看它在 Linux 内核上的运行情况,请访问此
将其与圈复杂度工具相结合eclipse 插件,用于计算代码的复杂性。除了圈复杂度之外,它还可以处理:
...你应该有你需要的一切。
My vote goes to gnu global. It has all the features of ctags/cscope combined as well as the possibility to generate fully indexed html which allows you to browse the code in your favorite browser. Fire it up in apache and you have a web-service that anyone can access including full search capabilities.
It integrates nicely into emacs/vim/even the bash-shell, and you can use it directly from the shell-prompt.
To see it in action on the linux kernel, visit this
Combine that with a tool for cyclomatic complexity plugin for eclipse which calculates the complexity of your code. besides the cyclomatic complexity it can handle:
...and you should have everything you need.
如果您喜欢命令行;)也许您可以尝试 cscope,它会对代码进行静态分析,并可以告诉您在哪里引用了一些符号/变量/函数...不是圣杯,但浏览未知的源代码非常有用。
还有一些可以处理 csope 结果的 GUI(Vi、Emacs、JEdit...)。
另一方面,带有 CDT 插件的 Eclipse 也可以帮助您导航到您拥有的意大利面条式代码维持。
If you like command line ;) maybe you could try cscope, it does static analysis of code and can tell you where are referenced some symbols/variables/functions... Not the Holy Graal, but it can be pretty usefull to browse unknown source code.
There are also some GUI that can handle csope results (Vi, Emacs, JEdit...).
On the other hand, Eclipse with the CDT plugin can also help you to navigate into the spaghetti code you have to maintain.
它不是免费的,据我所知不是 Linux,但 cppDepend 可能值得评估 - 至少在有人提出更合适的建议之前:)
http ://www.cppdepend.com/ [此处演示视频]
It's not free and afaik not linux but cppDepend might be worth evaluating - at least until someone comes up with a more suitable suggestion :)
http://www.cppdepend.com/ [Demo video here]
如果您想知道在哪些函数中声明或引用了符号,您可以尝试 LXR。它不是基于控制台的,但非常有用。
If you'd like to know in which functions a symbol is declared or referenced you can try LXR. It's not console based, but is quite usable.