What tools do you use for static code analysis? [c

2020-05-11 10:37发布

This question on Cyclomatic Complexity made me think more about static code analysis. Analyzing code complexity and consistency is occasionally useful, and I'd like to start doing it more. What tools do you recommend (per language) for such analysis? Wikipedia has a large list of tools, but which ones have people tried before?

Edit: As David points out, this is not a completely unasked question when it comes to C/UNIX based tools.

14条回答
Summer. ? 凉城
2楼-- · 2020-05-11 11:21

Also see the question Choosing a static code analysis tool if you're looking for C/UNIX based tools.

查看更多
家丑人穷心不美
3楼-- · 2020-05-11 11:22

For C++, I use CppCheck. It seems to work fine.

查看更多
登录 后发表回答