PC-lint Plug-in


The Gimpel PC-lint/MISRA plug-in provides a LINT and MISRA standard check on C source files created in MPLAB® X IDE. This plug-in has various settings which include PC-lint installation path, compiler configuration, command line argument, log file creation and selection of source files.

PC-lint will check your C/C++ source code and find bugs, glitches, inconsistencies, non-portable constructs, redundant code and much more using the K&R (Kernighan & Ritchie) and ANSI standards for C (style of coding). The purpose of linting your program is to determine potential problems prior to integration or porting or to reveal unusual constructs that may be a source of subtle errors. The C compiler cannot always detect each and every potential problem in your source files; this is where PC-lint comes in. PC-lint can be configured to suit your needs, it can either complain a lot or a little.

To check the source code, the plug-in will invoke the Gimpel PC-lint/MISRA executable file with the appropriate command line argument. The output of the Gimpel PC-lint/MISRA analysis will be redirected to the MPLAB X IDE output window. The output will contain the file name(s) and line number(s) in which linting found inconsistencies. Double clicking an output line will open the corresponding file at the line number in the MPLAB X IDE editor window.

For instructions on how to install PC-lint and the Microchip Plug-in for PC-lint click here. We have also provided an example for how to use the Gimpel PC-lint/MISRA Plug-in.

© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.