BCB6下如何配置pc-lint?

jaffy 2009-04-27 11:08:26
下了个8.00e的版本,但网上只有VC6的配置方法,在BCB6下用BCB5的配置似乎不行,谁有这方面经验啊?
...全文
137 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
jaffy 2009-05-04
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 zxjrainbow 的回复:]
谁说BCB6不行的?我都用了一年多了。
bat的内容:
Lint-nt std.lnt -os(c:\检查输出.txt) -u %1
F:\Tool\ULTRAEDT\Uedit32.exe "c:\检查输出.txt"

std.lnt 内容:

BatchFile code
// Borland C++ Builder, -si4 -sp4, lib-owl5.lnt lib-w32.lnt
// Standard lint options
au-misra.lnt
co-cb.lnt
lib-owl5.lnt lib-w32.lnt
options.lnt -d_FLAT_ -u_SMALL_ -si4 -sp4
-iE:\Borland\CBuilder6\Include…
[/Quote]
能不能提供相关配置文件MAIL给我
jaffy@21cn.com
fairchild811 2009-05-02
  • 打赏
  • 举报
回复
没用过,帮顶
xjq2003 2009-05-01
  • 打赏
  • 举报
回复
看说明书,呵呵
xjq2003 2009-05-01
  • 打赏
  • 举报
回复
看说明书,呵呵
小笨象 2009-05-01
  • 打赏
  • 举报
回复
谁说BCB6不行的?我都用了一年多了。
bat的内容:
Lint-nt std.lnt -os(c:\检查输出.txt) -u %1
F:\Tool\ULTRAEDT\Uedit32.exe "c:\检查输出.txt"

std.lnt 内容:
[code=BatchFile]
// Borland C++ Builder, -si4 -sp4, lib-owl5.lnt lib-w32.lnt
// Standard lint options
au-misra.lnt
co-cb.lnt
lib-owl5.lnt lib-w32.lnt
options.lnt -d_FLAT_ -u_SMALL_ -si4 -sp4
-iE:\Borland\CBuilder6\Include;;E:\Borland\CBuilder6\Include\Vcl;
-iE:\Borland\CBuilder6\Delphi\SkinImage;E:\Borland\CBuilder6\Imports;
-iH:\DocBook\Docbook2451;
[/code]

其它的都是默认的。


hemiya 2009-05-01
  • 打赏
  • 举报
回复
没用过.
jacknes009 2009-04-30
  • 打赏
  • 举报
回复
不曾试过。
jaffy 2009-04-28
  • 打赏
  • 举报
回复
似乎只支持老版本的BORLAND C++ 对BCB支持不好,这是它说明上的原话

env-cb.lnt: environment parameters for the Borland C++ Builder

Select "Tools" and then select "Configure Tools ...".
This will open a "Tool Options" dialog from which you can select
"Add...". This yields a "Tool Properties" dialog which will
require you to add the following four entries:

Title: &Lint
(the '&' allows selection via 'L' from the Tool menu).

Program: C:\LINT\LINT-NT.EXE
(modify the path as appropriate)

Working dir:
(when left blank, the default becomes $PATH($EDNAME))

Command Line: $SAVE -u -v -iC:\LINT std env-cb $EDNAME

This command line will save the current file ($SAVE)
After specifying unit checkout (-u) and no verbosity (-v) and
include directories (-i) there appears 'std' specifying the
file std.lnt. This is the same as appears in your lin.bat file.
The 'env-cb' specifies the file you are currently reading;
finally, the being-edited file appears as $EDNAME.

After you close things up and return to the main menu, you can
select the 'Tool' menu and your new entry should be there.

Note that this method does not allow you to automatically sequence
through messages. This ability was available in previous Borland
Development environments but we (Gimpel Software) have no idea
how this would be done with C++ Builder.
jame2001 2009-04-27
  • 打赏
  • 举报
回复
試過, 沒辦法..
ccrun.com 2009-04-27
  • 打赏
  • 举报
回复
不曾试过。

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧