What open source C++ static analysis tools are ava

2019-01-01 04:06发布

Java has some very good open source static analysis tools such as FindBugs, Checkstyle and PMD. Those tools are easy to use, very helpful, runs on multiple operating systems and free.

Commercial C++ static analysis products are available. Although having such products are great, the cost is just way too much for students and it is usually rather hard to get trial version.

The alternative is to find open source C++ static analysis tools that will run on multiple platforms (Windows and Unix). By using an open source tool, it could be modified to fit certain needs. Finding the tools has not been easy task.

Below is a short list of C++ static analysis tools that were found or suggested by others.

What are some other portable open source C++ static analysis tools that anyone knows of and can be recommended?

Some related links.

14条回答
不再属于我。
2楼-- · 2019-01-01 04:49

You should try oo-browser it has awesome integration with xemacs

查看更多
若你有天会懂
3楼-- · 2019-01-01 04:50

CppCheck is open source and cross-platform.

Mac OSX:

brew install cppcheck
查看更多
像晚风撩人
4楼-- · 2019-01-01 04:51

Splint seems to fill the bill for C.

If you didn't specify open source I'd say Gimpel Software's PCLint is probably one of the best tools available for static code checking in C++. But, of course, it's not open source.

Mac OSX:

brew install splint
查看更多
路过你的时光
5楼-- · 2019-01-01 04:53

Mozilla's static analysis work is probably worth a look.

查看更多
余生请多指教
6楼-- · 2019-01-01 04:54

Doxygen does some control flow analysis and generates graphs. Those may not be what you're looking for, but I've foudn them useful to look at.

查看更多
高级女魔头
7楼-- · 2019-01-01 04:55

If by Open Source, you really meant "free", then Microsoft's prefast analysis is a good one. Windows-only ofcourse. It is fully integrated in Visual Studio & the compiler. e.g.:

cl /analyze Sample.cpp
查看更多
登录 后发表回答