Cppcheck User Guide

Source: Internet
Author: User

Cppcheck 1.61:


1. Upload the zip package to linux
2. unzip cppcheck-1.61.zip
3. cd cppcheck-1.61
4. sudo chmod 777 cppcheck // modify the permission
5. Modify the target check address and header file address, and execute a command similar to the following:
./Cppcheck -- enable = all-I ~ /Rt0803/TGL/webkernel/foundations/include /~ /Rt0803/TGL/webkernel/foundations/2> result.txt (replace the header file directory with the purple part and the red part with the source file directory)
6.compare result.txt to improve code


This article is from "recalling the past ..." Blog, please be sure to keep this source http://memory.blog.51cto.com/6054201/1290041

Related Article

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.