env-sl3.lnt
资源名称:pclint.rar [点击查看]
上传用户:filter2008
上传日期:2010-03-12
资源大小:2959k
文件大小:2k
源码类别:
编辑器/阅读器
开发平台:
C/C++
- /*
- env-sled3.lnt: environment options for Visual Slick Edit version 3.0+
- If you are using the visual slick edit editor and you wish to invoke
- PC-lint from that environment then do the following.
- 1) create a new project by selecting the new/open option
- from the project menu. type lint.vpj at the filename and
- click on NEW
- 2) edit the project by selecting the Project Properties option from
- the Project menu. In order to set up PC-lint for C/C++,
- a) Click on the "Directories" tab. To change the Include directory
- place either the path or the include environment variable which
- contains the path to header files. for example
- %(INCLUDE)
- or
- c:compilerinclude
- b) at compile text box enter the following
- lint -ic:lint std.lnt %f
- Replace "c:lint" by the appropriate lint directory if
- necessary. Ensure the capture output check box is checked
- (recommended).
- PC-lint is now able to be invoked as you would a compiler;
- just select the compile option from the project menu.
- */
- -"format=%(%f %l %)error %n: (%t -- %m)" // Messages will contain
- // file information (%f), the line number (%l), the
- // message number (%n), message type (%t) and message text (%m).
- // Notice that all messages are labeled 'error' but are then
- // followed by a type (such as Warning, Info, Note, etc.)
- -hF2 // Make sure we ALWAYS provide file information ('F') and use 2
- // lines (line in error plus message).
- -width(0) // don't break messages at any particular width