Keil Logo

Setup PC-Lint

The PC-lint Options dialog configures PC-Lint and MISRA Validation. PC-Lint from Gimpel Software is an add-on product to µVision.

Lint Executable
Specify the path to the PC-Lint executable file.
Add Compiler Config
When enabled, a pre-defined configuration file for the selected compiler is used, and the path to the compiler library is added.
When disabled, you can supply a PC-Lint configuration file manually.
Config File
Specify the PC-Lint configuration file that contains the setup of PC-Lint, for example, for the compiler and other parameters.

Include Project Information

Add 'Include' paths
When enabled, add include paths from the Options for Target - C/C++ compiler options dialog are added. This also includes the path to the compiler library header files.
Add 'Software Pack' paths
When enabled, include paths from RTE component selection are added.
Verify 'Software Pack' includes
When enabled, PC-Lint verifies the include files that belong to Software Packs.
When disabled, PC-Lint does not verify the include files that belong to Software Packs.
Add 'Preprocessor' symbols
When enabled, a file with compiler pre-processor defines is created and added. This file reflects the compiler settings.
Add 'Define' symbols
When enabled, the define symbols from compiler options dialog and other inherent project define settings (for example, RTE, <device>) are added.

Additional PC-Lint Include Folders

Add additional include folders for the PC-Lint setup.
You can use environment variables in curly brackets to specify paths. Refer to Key Sequence for Tool Parameters for details.

C and C++ tab

The MISRA Rules Setup and Configuration fields apply to C or C++ modules. Click the tab to change the context of the fields. You can define specific rules for both languages.

Rules
Specify a file to configure the MISRA validation. Using a MISRA_xxxxx_Config.lnt allows you to setup the rules that apply to your project.
  • Initial Setup: select the MISRA standard from the drop-down menu and click Setup. This copies a MISRA_xxxxx_Config.lnt file to your project folder.
  • Configure MISRA Rules: click Edit to open the MISRA_xxxxx_Config.lnt file. Switch to Configuration Wizard and select the rules that apply to your project.
  • Use MISRA Config File: Change the name of the MISRA_xxxxx_Config.lnt file to specify pre-configured rules. You may use a copy of an existing MISRA_xxxxx_Config.lnt file.

Single File: Additional Lint Commands

Add additional PC-Lint configuration settings that are applied when a single file is checked using PC-Lint.

Multiple File: Additional Lint Commands

Add additional PC-Lint configuration settings that are applied when multiple files are checked using PC-Lint.

Note

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.