Pvs-studio Static code analysis tools recommended

Source: Internet
Author: User

recently discovered a very useful static code analysis tool, Pvs-studio, developed by a Russian company to diagnose errors in C/c++/c++11 source code. It is compatible with the visual Studio development environment and the latest version supports visual Studio2015. After the Pvs-studio is installed, Pvs-studio will appear in the Visual Studio navigation bar , as shown in visual Studio2010 .



Here is an example of some of the problems that I used Pvs-studio to check out the current program:

1. Assign values to variables.



2, the missing member variable assignment.



3. The condition is judged exactly the same.



4, the pointer is not checked before use.



5, memset the size of the incoming pointer, not the actual size of the array.




Finally attach the tool download link:

http://download.csdn.net/detail/johnsonlee86/9515591


Pvs-studio Static code analysis tools recommended

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.