RistanCASERistanCASE Home
Home |  Products |  Company Info |  Partners   
Home » Products » DAC V4.x » FAQ (How-to) » How to filter PC-LINT messages with the %ErrGet() UDA macro?
How to filter PC-LINT messages with %ErrGet() UDA macro? FAQ Index
With %ErrGet(lstfile,PC-Lint,V8.xx,tabname) you may parse the PC-Lint V8.xx output file.

Older PC-Lint versions:

I am working on a project that requires all modules to be tested with the Gimpel PC-Lint software as part of the spec . Can you assist me in integrating the PC-Lint software into DAC development environment?
Roger Morella
Airtek


The following is the actual output from the lint program using the following format:

-"format=%(%f %l: %c: %)\s %n\s %m"

%f = filename and path
%l = line number of warning or error
%c = column position within line
\s = space character
%n = lint message number
%m = lint message

Example messages (saved in lintmessages.txt file):

--- Module: modem.c
alarm.h 4: 9: 537 Repeated include file 'platform.h'
io.h 4: 9: 537 Repeated include file 'system.h'

-- Global Wrap-up
reg251sb.sfr 123: 0: 714 Symbol 'CEX0' (line 123, file reg251sb.sfr) not referenced
reg251sb.sfr 360: 0: 714 Symbol 'CCF4' (line 360, file reg251sb.sfr) not referenced


The sample DAC project with a %ErrGet() filter is attached, please
see the "Project / User Defined Actions".
PC-LINT messages as warnings (blue):

.%ErrGet(lintmessages.txt,xxxx,$F $L: $I:,PC-LINT Messages)

PC-LINT messages as errors (red):
.%ErrGet(lintmessages.txt,$F $L: $I:,xxxx,PC-LINT Messages)

Screenshot: PC Lint Messages

Download pclintmessages.zip example project (2KB).

RistanCASE Support Team

  
Copyright © 1996-2008 RistanCASE GmbH. All rights reserved.