Build Pclint and Sourceinsight complete set of environment

Source: Internet
Author: User

1. Download Pclint and Sourceinsight tools

Pclint Tool Address: http://download.csdn.net/detail/u012329294/8280039

Sourceinsight Tool Address: http://download.csdn.net/detail/u012329294/6363931

2, install Sourceinsight, click Next step Step installation can.

3, install Pclint, will ask you to configure your own lint file, you can not control it (if you want to configure later, click the Lint directory Config.exe can be configured).

Can be configured directly manually, the following describes the manual configuration file method:

1) std.lnt---Generally as the main entrance

Microsoft Visual C + + 2005,-SI4-SP4, Lib-mfc.lnt lib-stl.lnt lib-w32.lnt lib-wnt.lnt
Standard Lint Options

-wlib (0)

Co-msc80.lnt
LIB-MFC.LNT lib-stl.lnt lib-w32.lnt lib-wnt.lnt
Options.lnt-si4-sp4
Include.lnt

2) include.lnt---Contains the file header, the following 3 file locations are required for VS2008

-i "F:\Program Files\Microsoft Visual Studio 8\vc\include"
-i "F:\Program Files\Microsoft Visual Studio 8\vc\platformsdk\include"
-i "F:\Program Files\Microsoft Visual Studio 8\vc\atlmfc\include"

3) Options.nt--Block unwanted alarms

Please note – This is a representative set of error suppression
Options. Please adjust to suit your own policies
See Manual (Chapter LIVING with LINT)
For further details.

-e720/allow direct test of assignment
-e537
-e539
-e830
-e438
-e550
-e838
-e529
-e534
-e1773
-e826
-e831
-e774
-e818
-e613//judgment may be null pointer
-e866
-e715
-e725
-e527
-e668
-e734
-e525
-e834
-e732
-e801
-e524
-e790
-e1746
-e653
-e451
-e750
-e713
-e705
-e766

4. Configure a single file to run Pclint check on Sourceinsight

Run the following command in the custom commands:

"C:\lint\lint-nt.exe"-u-ic:\lint std env-si%f

5. Configure multiple files to run Pclint check on Sourceinsight

First create a new file under Pclint, the command for CZX.LNT, which lists all the parts that need to be pclint checked

Specifically, to obtain a. cpp file under the project directory, you can execute a DOS command: dir/b/s

This allows you to get all the files in the directory and copy the interface to the Czx.lnt file.

Run the following command in the custom commands:

"C:\lint\lint-nt.exe"-u-ic:\lint std env-si CZX

All files can be pclint checked at once by running.

Build Pclint and Sourceinsight complete set of environment

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.