LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PC-Lint w/ CVI?

Has anyone ever had success using Gimpel's PC-Lint (7.x) on a LabWindows/CVI
source file? I am looking specifically for any .lnt option file settings
necessary to allow PC-Lint to successfully process CVI SDK headers.

Thanks,

--
Bob Rafuse
Etec, Inc.
0 Kudos
Message 1 of 4
(3,249 Views)
We are using PC-Lint 7.5 and have taken the option of excluding any CVI headers (either the supplied, or autogenerated, i.e. uir headers) from the lint report.

In common with the microsoft headers they do not check for repeated includes which is where most of the errors come from.

As an addition we also exclude all third party headers, i.e instruments etc. These are not considered part of our code for review purposes as they are supplied by external parties and "should" have been reviewed by the supplier!

To exclude a header use

//lint -elib(*)
#include
//lint +elib(*)

The plus turns off the checking, the minus turns it back on again.

Hope this has been of some help.

Alastair French
Racal Instruments Ltd
0 Kudos
Message 2 of 4
(3,249 Views)
Correction minus turns it off and plus turns it on!
0 Kudos
Message 3 of 4
(3,249 Views)
> We are using PC-Lint 7.5 and have taken the option of excluding any
> CVI headers (either the supplied, or autogenerated, i.e. uir headers)
> from the lint report.
>
> In common with the microsoft headers they do not check for repeated
> includes which is where most of the errors come from.
>
> As an addition we also exclude all third party headers, i.e
> instruments etc. These are not considered part of our code for review
> purposes as they are supplied by external parties and "should" have
> been reviewed by the supplier!
>
> To exclude a header use
>
> //lint -elib(*)
> #include
> //lint +elib(*)
>
> The plus turns off the checking, the minus turns it back on again.
>


Thanks! I'll give that a shot.

Bob.
0 Kudos
Message 4 of 4
(3,249 Views)