GNU bug report logs - #49787
noexcept on destructor confuses cc-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Fri, 30 Jul 2021 23:39:01 UTC

Severity: normal

Tags: confirmed

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 49787 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: bug#49787: noexcept on destructor confuses cc-mode
Date: Mon, 22 Aug 2022 12:32:04 +0200
Daniel Colascione <dancol <at> dancol.org> writes:

> This is valid C++ code.
>
> struct Foo {
>
>   ~Foo() noexcept;
>
> };
>
> Adding the "noexcept" on the destructor causes cc-mode not to
> recognize "~Foo" as a destructor.

I can confirm that this behaviour is still present in Emacs 29.  Adding
Alan to the CCs.




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

Previous Next


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