PC-lint/PC lint Plus indirect files

PC-lint and PC-lint Plus indirect (.lnt) files are text files which contain directives to configure PC-lint or PC-lint Plus for a given environment, library, or warning policy. The most visible of these are the std.lnt and options.lnt files which define the analysis configuration and warning policy, and which can be generated via the Visual Lint Configuration Wizard or directly edited via dedicated Visual Lint commands.

For each project loaded, Visual Lint also generates a project indirect ("project.lnt") file which contains PC-lint/PC-lint Plus directives (for example preprocessor symbols and include folder directives) specific to that project.

Examples of the contents of these indirect files are available in the following help topics:

The std.lnt indirect file will normally reference a number of other indirect files - for example co-rb-vs2019.lnt for the PC-lint Plus Visual Studio 2019 compiler configuration or au-sm123.lnt for the Scott Meyers Effective C++ recommendations. It can also contain other PC-lint/PC-lint Plus directives such as -w2 to set the warning level.

To make things straightforward, the Visual Lint installer includes a subset of the indirect files from the PC-lint 8.0 and 9.0 and PC-lint Plus distributions, as well as several indirect files (e.g. the lib-rb-win32.lnt library suppressions indirect file) authored by Riverblade. By default these are installed into the following folders:

When it generates a PC-lint or PC-lint Plus command line, Visual Lint includes -i (include folder) directives for the PC-lint/PC-lint Plus installation folder, the lnt folder within it (which contains indirect files distributed with PC-lint or PC-lint Plus) and the appropriate folder within the Visual Lint installation.

In this way, the Visual Lint Configuration Wizard can provide "out of the box" configurations without the need to download additional indirect files from the corresponding support page for the analysis tool.

The ordering of -i directives used ensures that indirect files located within the PC-lint/PC-lint Plus installation folder (or its lnt subfolder) will override those supplied with Visual Lint.

 

Indirect files from the PC-lint and PC-lint Plus distributions are included in the Visual Lint installation by kind permission of Gimpel Software.

 



Copyright © 2004 - 2023 by Riverblade Ltd. All rights reserved.