随笔分类 -  PCLint

摘要:@ECHO OFF setlocal ENABLEDELAYEDEXPANSION ::修复js文件的关联,否则js脚本无法执行 reg add "hkcr\.js" /ve /d JSFile /f >nul set time1=%time:~0,2%%time:~3,2%%time:~6,2% 阅读全文
posted @ 2013-09-09 20:12 dzqabc 阅读(13) 评论(0) 推荐(0)
摘要:1.控制消息高度,使用格式为:-h[abfFrsm/<M>/]<I>]<ht>(缺省值为 -ha_3) <ht> : 为消息高度,取值范围为1-4 <I> : 为每条消息的位置指示符,如果<ht>为2,该指示符将与消息同行显示,如 果<ht>大于2,该符号将单独在一行显示 a : 表示将位置指示符放在源程序中错误行的前一行(<ht>必须为3或4才行) b : 表示将位置指示符放在源程序中错误行的下一行(<ht>必须为3或4才行) f : 消息中总是包含文件信息 F : 消息中总是包含文件 阅读全文
posted @ 2013-04-09 22:56 dzqabc 阅读(1633) 评论(0) 推荐(0)
摘要:/* co-gcc.lnt: This is the seed file for configuring Lint for use with GCC versions 2.95.3 and later. Like all compiler options files this file is intended to be used as follows: lint co-gcc.lnt source-files-to-be-linted Some of the information that co-gcc.lnt requires needs to b... 阅读全文
posted @ 2012-10-21 21:38 dzqabc 阅读(4510) 评论(0) 推荐(1)
摘要:错误信息禁止 源码中 ·隐藏某类错误 /*lint -e725 */ -e(#) ·隐藏下一表达式中的某类错误 /*lint –e(534) */ printf(“it’s all”); !e# ·隐藏本行中的错误 /*lint !e534*/ printf(“it’s all”); -esym(#, Symbol) ·隐藏有关某符号的错误 /*lint –esym(534, printf)*/ printf(“it’s all”); -elib(#) ·隐藏头文件中的某类错误 /*lint –elib(129) */ #include “r0 阅读全文
posted @ 2012-02-18 22:46 dzqabc 阅读(1123) 评论(0) 推荐(0)
摘要:这里说的是手工配置,假设我的pclin.exe在 d:pclint8目录下面,所有的*.lnt文件在d:pclint8lnt目录下面:1. options->custom commandsa) 添加一个新的命令名,例如:Pc Lint b) 在run 中填入:d:pclint8lint -u -ic:lint std env-si %fd:pclint8是你的Pclint所在的目录.c) 在path中填入:d:PCLint8lnt(就是你所有*.lnt文件所在的目录)d) 勾选下面的选项: Iconic WindowCapture OutputSave Files FirstParse 阅读全文
posted @ 2011-01-28 00:29 dzqabc 阅读(3008) 评论(0) 推荐(0)