一、安裝。
1。首先,將本目錄下的文件全部拷貝到c:/lint之下。
2。然後,在Source InSight 中,選擇 Option-> Custom Commands... 彈
出“Custom Commands”窗口。
進行如下設置:
1) Command 不要填,Name填 PCLint
2) Run中填:C:/LINT/Lint-nt.exe -ic:/lint/ std.lnt %f
3) 選中以下複選框:
Iconic Window
Capture Output
Save Files First
Wait Until Done
Parse Links in Output
File, then Line
其他複選框不選。
4) Pattern 中填:^/([a-zA-Z0-9].*/)/w/(/w[0-9][0-9]*/w/)
然後點 Add 按鈕。
3。最後設置快捷鍵。
點此窗口中的 Keys... 按鈕,在 Commands 框中選“PCLint”,點
"Add " 按鈕,然後敲一個熱鍵。建議設爲 " Ctrl+Shit+1 ",沒有衝
突。最後點 "OK " 鍵。
4。在“Custom Commands”窗口中點 "Change "按鈕。
二、使用
以後,在要 lint 的文件窗口下使用熱鍵 " Ctrl+Shit+1 "就可以使用
PClint 啦。