lclint-interest message 165

From Tue Sep 23 13:46:08 1997
X-Authentication-Warning: smap set sender to  using -f
Date: Tue, 23 Sep 1997 10:47:31 -0700 (PDT)
From: "Albert L. Ting" 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: Subscription request
References: <>
X-Mailer: VM 6.34 under Emacs 20.1.1

David Evans writes:
> From: (David Evans)
> To:
> Subject: Subscription request
> Date: Tue, 23 Sep 97 13:08:43 -0400
> > developers about how they feel about it.  My second question is
> > technical: Is there some way to make lclint output that can be parsed
> > by emacs compilation mode?  The emacs command next-error allows
> > visiting the file and line number of each file as reported from the
> > compiler.  Actually I have only used it with gcc but I know that it
> > works with other tools as well.  Another approach is to extend emacs
> > to support the lclint output format.  Any information on this would be
> > appreciated.  Sorry if these are commonly answered questions.
> There is an emacs mode included with the lclint distribution in
> emacs/lclint.el.  This defines lclint-next-error which will jump to the
> line and column number of the next error message in your *lclint*
> buffer.  Please see
> for more
> information on emacs support.
> --- Dave

I don't know why there is a lclint.el file because the current emacs
environment (version 20 and probably 19.34) seems to work just fine.  You
just have to add an additional regex to make it fully understand the lclint
error messages.  The emacs folks (RMS) will probably update the sources to
automatically support lclint.  In the meantime, add the following into your
.emacs file.  In version 20, font-lock highlighting will work as well.

 '(let (
        ;; similar to the first regexp in compile.el (v20), but also looks
        ;; for a comma
	 "\\([a-zA-Z]?:?[^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)\\([) \t]\\|\
    (setq compilation-error-regexp-alist
	  `((,lclint 1 2 5)

Albert L. M. Ting * * 408-487-5327 (phone) * 408-453-3500 (fax)
Artisan Components, Inc., 2077 Gateway Place, Suite 300, San Jose, CA 95110 USA

Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science