env-sled.lnt

来自「PClint,一个非常严格的C/C++编译器, 可以嵌入到VC.GCC等.它甚至」· LNT 代码 · 共 48 行

LNT
48
字号
/* 
    env-sled.lnt:  environment options for Visual Slick Edit

    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 edit project option from
       the project menu source.  In order to set up lint, click on
       the Edit Settings button.

       a) at the Include directory place either the path or the
	  include environment variable which contains the path to
          your header files.  for example

            %(INCLUDE)

          or

	    c:\compiler\include

       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); also, ensure the concur process check box
	  is checked.

    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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?