PC-Lint

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
dixonc
Posts: 54
Joined: Mon Feb 02, 2004 3:05 pm

PC-Lint

Post by dixonc »

Does anybody have a configuration to allow PC-Lint (www.gimpel.com) to be interfaced to the Text Pad command window? I can get the default lint output but cannot activate the jump to the error part. Can anybody help - I'm in the process of evaluating Text Pad and would like to get this feature working - everything else is great.

Thanks,

Chris
dixonc
Posts: 54
Joined: Mon Feb 02, 2004 3:05 pm

Configuration for PC-Lint

Post by dixonc »

Since posting this message I've managed to get the error jumping part working - I've set this up as env-tpad.lnt, a copy of which I've cut and pasted below. The important part is the regular expression:

^\(.+\) \([0-9]+\) \([0-9]+\)

env-tpad.lnt

/*

In TextPad the following setup should be used (note: spaces in regular expression are important)

In Configure\Preferences>Tools set up two Programs

1. PC-Lint (Unit Check)
2. PC-Lint (ALL)

with the following options:

Command C:\Lint\LINT-NT.EXE
Parameter (Unit Test) env-tpad.lnt -u $File
Parameter (ALL) env-tpad.lnt -u $File
Initial Folder $FileDir
Regular Expression ^\(.+\) \([0-9]+\) \([0-9]+\)

Capture output ON
Sound alert ON

Further information: TextPad www.textpad.com
PC-Lint www.gimpel.com

*/

/* Set up PC-Lint output for TextPad */
-"format=%(%f %l %c %) LINT> %t %n: %m"

/* Don't break lines */
-width(0)

/* Always supply a file name */
-hF1
Post Reply