工具源$ C ​​$ C分析? [英] Tool for source code analysis?

查看:120
本文介绍了工具源$ C ​​$ C分析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来源$ C ​​$ C的分析和探索工具似乎非常缺乏。

Source code analysis and exploration tools for C and C++ seem to be sorely lacking.

有没有我可以用它来收集有关C和/或C ++源文件信息的工具吗? cscope的做什么,我需要的部分,看上去的Doxygen接近。

Are there any tools which I can use to gather information about C and/or C++ source files? cscope does part of what I would need, Doxygen looks closer.

目前所有功能的最小列表,主叫,被叫,变量引用等。
也许使用Doxygen的XML输出​​会工作。

At a minimum list of all function, callers, callees, variable references etc. Perhaps Doxygen's xml output would work.

在理想情况下GCC或LLVM可以迷上了这个目的,但是我还没有找到一个便捷的方式这样做。

Ideally gcc or llvm could be hooked for this purpose but I have yet to find a convenient way to do so.

有什么建议?

推荐答案

还有就是铛静态分析仪这是铛前端为LLVM的一部分,但我不知道它如何适用于C / C ++。看来他们的大部分精力朝Objective-C的打算。

There is the clang static analyzer which is part of the clang front end for llvm, but I don't know how well it works for C/C++. It seems most of their effort is going towards Objective-C.

http://clang-analyzer.llvm.org/

Doxygen的是良好的调用关系图,你要安装的GraphViz并使用doxywizard选择调用图和图表调用勾选框在图部分(CALL_GRAPH和CALLER_GRAPH在专家模式下点部分。)

Doxygen is good for call graphs, you'll want to have GraphViz installed and use doxywizard to select the Call graphs and Called by graphs tick boxes in the Diagrams section (CALL_GRAPH and CALLER_GRAPH in the expert mode Dot section.)

这篇关于工具源$ C ​​$ C分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆