GNU bug report logs - #59671
CC Mode 5.35.2 (C/*l); More incorrect type recognition

Previous Next

Package: cc-mode;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Tue, 29 Nov 2022 07:09:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 59671 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 59671 <at> debbugs.gnu.org
Subject: Re: bug#59671: CC Mode 5.35.2 (C/*l); More incorrect type recognition
Date: Fri, 09 Dec 2022 09:05:35 +0800
Alan Mackenzie <acm <at> muc.de> writes:

> Yes.  This is not good.  Please try out the attached patch which applies
> cleanly to the release branch (and almost certainly to the master branch
> too).  This should fix the problem, in that although "allocscratch" gets
> entered into c-found-types, it gets removed again as soon as a type and
> declarator are typed in after the typedef.

This works for my example but I've yet to use the patch in the real
world.  Thanks.




This bug report was last modified 2 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.