| LintProject Professional - Code analysis with HTML reporting |
LintProject Professional is a command line product intended to make the process of using the PC-Lint code analysis tool produced by Gimpel software with Visual C++ projects a little easier and more productive. It replaces the previous LintProject tool, extending greatly the level of detail included in the generated reports and providing far greater compatibility with Visual C++ project files. Please Note: To use LintProject Professional, you must have access to a licenced installation of PC-Lint. If you need to purchase PC-Lint licences, we can supply them in our online store. Please contact Gimpel Software for support information regarding PC-Lint.
BackgroundPC-Lint analyses C++ code to identify potential problems. By comparison with a C++ compiler such as that provided with Visual C++, it is highly customisable and very thorough, but (understandably) significantly slower. Introducing LintProject ProfessionalLintProject Professional was written to address two of these issues. Unlike PC-Lint, LintProject
Professional can read both Visual C++ project and solution files.
Please see the FAQ topic "Which solution, workspace and project file types is LintProject Professional compatible with? " is full details of supported solution, workspace and project file types.
HTML ReportsWhilst the availability of text files containing the results of the analysis is an essential result of the process, without a means of summarising their contents and indexing them the process of interpreting the results is likely to be slow and laborious. A key design aim of LintProject
Professional was to be capable of indicating its process whilst it runs. This is especially important when you consider that a PC-Lint analysis of a large project can take some considerable time on some systems. To achieve this aim, the output reports produced by LintProject
Professional are automatically regenerated as the analysis progresses. * At present this feature is limited to Internet Explorer and derived browsers such as Crazy Browser, Avant browser etc.. Using LintProject ProfessionalOnce installed a LintProject Professional command prompt can be easily run from the supplied shortcut which temporarily adds the path of the installation directory to the system path. The /folder switch can then be used to tell it where to find the PC-Lint executable. LintProject Professional is invoked by a simple command line, for example:
LintProjectPro <ProjectName.vcproj/dsp> <ResultsFolder> [options] There are
a number of additional options:
Specifies the location of the LintProject executable. This is only required if LintProject is installed in a different folder from the PC-Lint executable. /configfile"<FileName> Specifies the filename of the lint indirect file to use. If omitted, std.lnt is assumed. /cfg"<ConfigName>" Specifies the solution configuration to be analysed. Similarly, /cfg? will list the available configurations. /save Saves the current PC-Lint installation folder settings to the registry so that /folder can be omitted next time LintProject Professional is run). /show Specifies that the HTML output should be automatically opened in a browser window when analysis starts. /param"<parameters>" Passes the following parameters to the PC-Lint executable (lint-nt.exe). For example, /param" -background" will instruct PC-Lint to perform analysis at a low priority. /? Display help information Finally...If you find LintProject Professional useful, we encourage you to take a look at Visual Lint - Riverblade's solution for developers who require close integration with Microsoft Visual Studio. In addition to the report generation capabilities offered by LintProject Professional, Visual Lint also offers features such as background Lint analysis of source files and the ability to double click on a warning message and open the corresponding line in the code editor. |
|
"I don't even have pc-lint yet, and the only thing I actually know about it is from reading the ads for it in C++ Users Journal. But thanks to your article, I plan on purchasing a copy in the next few days! Thanks!!" - Comment posted on the original LintProject article on The Code Project |