How do I use PC-lint Plus with Visual Studio project?

PC-lint Plus User Discussion
Post Reply
jganzo

How do I use PC-lint Plus with Visual Studio project?

Post by jganzo » Thu Sep 26, 2019 6:18 pm

I have solution and project file for Visual Studio 2017 and I want to analyze them. Every time though I make the command "pclp64 xstate_brk.sln" it seems not to be right. If doing "pclp64 main.cpp" instead it cannot find of the include file for "<algorithm>" header. How do run for analysis with Visual Studio?

YBCO

Re: How do I use PC-lint Plus with Visual Studio project?

Post by YBCO » Thu Sep 26, 2019 7:59 pm

In the config directory there is a utility named pclpvscfg.exe. Open this and select your Visual Studio version from the list. Browse for your solution file, fill in the names for the output files, and locate the file it asks for in the config directory. Run the batch file it generated to produce a configuration. Then run pclp64 compiler.lnt project.lnt to analyze the project. See section 2.3.13 of the manual for more information.

Post Reply