Occasionally found in the code there are some low-level errors, such as the copy memory out of bounds or the variable is not initialized to call, etc., resulting in the debug version is available but release version of abnormal phenomena, also inconvenient debugging. So I found some code analysis tools on the Internet, Cppcheck (open source free), understand (pay), PVs Studio (free). I used to use cpptest, but the cpptest is too heavy, and the distance to use the learning curve is a bit long.
1, Cppcheck installation problems: Supposedly can be used with VS integration, reference link: http://www.codeproject.com/Tips/472065/ Poor-man-s-visual-studio-cppcheck-integration If someone has installed it, please let us know.
2, installation using PVS Studio: The operation is very convenient and easy to use, with VS auto integration, installation also did not have any problem, can find obvious error, grading warning, install package 20MB around, recommend everyone to use. How to use: Pvs-studio->check solution
Download Link: http://pan.baidu.com/s/1jGHvDY2 Reference Link:http://www.viva64.com/en/b/0149/
C + + code Analysis Detection Tool