pc-lint嵌入到 SOURCE INSIGHT中

首先安装和配置好PC-LINT。
我安装后发现 config.exe不能完全用,导致 生成的std_x.lnt文件的信息有些要手动添加,
而且不会在安装目录下生成配置中产生的文件,导致运行时找不到某些文件其实。
我们可以将安装目录中 LNT中需要的文件拷贝出来,完全可以手动解决。
后来到PC-LINT的官网( http://www.gimpel.com/html/ptch80.htm)下了个 CONFIG.EXE,问题解决了。


文件env-si.lnt中已经说明了将PC-LINT嵌入到SOURCE INSIGHT中的方法:
    env-si.lnt: The environment file to run PC-lint from within the
    Source Insight Editor.

    To set up Source Insight to run PC-lint from a custom command
    do the following:

    1)  Select custom commands from the options menu.

    a)  Enter "PC-lint unit check" as the Name of the new command.
 
        b)  Enter in the run edit box the following:
      
                c:/lint/lint -u -ic:/lint std env-si %f

            Where c:/lint is your lint directory. 

        c)  Check the following check boxes/radio buttons
      
                Iconic Window
                Capture Output
                Save Files First
                Parse Links in Output
        File, then Line

        d)  Enter the following expression in the Pattern edit box
       
        ^/([^ ]*/) /([0-9]+/)

        This indicates that Messages are identified by:
        File-name blank line-number

    In order to run PC-lint, select from the Options menu the
    Custom Commands.  Then select PC-lint from the Command
    and click on the run button.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值