天天看点

Cppcheck软件使用

一款开源源码检测工具。简单易用。

Cppcheck软件使用

软件可直接官网下载。

Features  

Out of bounds checking  

Check the code for each class  

Checking exception safety  

Memory leaks checking  

Warn if obsolete functions are used  

Check for invalid usage of STL  

Check for uninitialized variables and unused functions  

使用过程中,分析数据结果如下:

Cppcheck软件使用

CppCheck与VS2005集成

VS选择External Tools,Tools->External Tools

设置工具路径

Cppcheck软件使用

继续阅读