On Wed, 22 Feb 2006 15:19:35 +0100
Mattias Gaertner <[EMAIL PROTECTED]> wrote:

> On Wed, 22 Feb 2006 14:56:56 +0200
> "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> 
> > > This first 'Quick Fix' item shows, when a compiler message of the form
> > > 'unit "xxx" not used' is selected. It will remove the unit from the
> > > uses section.
> > 
> > That sounds like a handy feature to have.  :-)
> 
> I hope some people will now write some more. For example:
> 
> - Identifier not found: 
> lookup common identifiers and add unit to to uses section
> 
> - Warning: Local variable "v" does not seem to be initialized
> Add an initialization like v:=0; or FillChar(v,SizeOf(v),0);
> 
> - Note: Local variable "i" not used
> Remove variable
> 
> - Hint: use DIV instead to get an integer result
> a) Replace / by div
> b) add a typecast
> 
> ...

I added the ability to improve messages by the quick fix items.
As first example, I added an item, which improves compiler messages of the
form:

test1.lpr(1,1) Fatal: Can't find unit bogus

to

test1.lpr(9,39) Fatal: Can't find unit bogus

That means, the source editor now jumps to the position in the uses section.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to