免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: 皇家救星
打印 上一主题 下一主题

今天试了一下用pclint,有两个问题搞不明白 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-03-16 09:20 |只看该作者
你可以使用efile或者emacro来处理这种情况。我个人并不觉得PC-LINT作用很大,我认为programming style比PC-LINT要有用一些。

-efile( #, file [, file] ... ) inhibits and
+efile( #, file [, file] ... ) re-enables
error message # for the indicated files. This works exactly like -esym but only on those messages
parameterized by FileName (Eg., 7, 305, 306, 307, 314, 404, 405, 406, 537, 766).
Please note, this does not inhibit messages within a file but rather messages about a file.

-emacro( #, symbol, ... ) inhibits
+emacro( #, symbol, ... ) re-enables
message # for each of the macro symbols given. The option must precede the macro definition.
The option -emacro(#,symbol,...) is designed to suppress message number # for each of the
listed macros. For example,
-emacro( 778, TROUBLE )
will suppress message 778 when expanding macro TROUBLE. What actually happens is that when
the macro is #define'd its defining string is preceded by the lint comment:
/*lint -save -e778 */
and is followed by the lint comment:
/*lint -restore */
You may wonder why we bother with this option because clearly the user can do this for him (or
her) self. But often it is compiler or third-party library macros that need the error suppression and
these, many of our users feel, should not be disturbed by the end-user.

论坛徽章:
0
12 [报告]
发表于 2014-12-16 20:07 |只看该作者
我也碰到同样的问题了,明明申请了内存没有释放,它就是检查不出来
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP