GNU bug report logs - #36650
27.0.50; CC Mode: Support C++ attributes

Previous Next

Packages: cc-mode, emacs;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Sun, 14 Jul 2019 14:50:02 UTC

Severity: normal

Found in version 27.0.50

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#36650: closed (27.0.50; CC Mode: Support C++ attributes)
Date: Sun, 21 Jul 2019 21:17:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 21 Jul 2019 21:16:34 +0000
with message-id <20190721211634.GB11223 <at> ACM>
and subject line Re: bug#36650: 27.0.50; CC Mode: Support C++ attributes
has caused the debbugs.gnu.org bug report #36650,
regarding 27.0.50; CC Mode: Support C++ attributes
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
36650: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36650
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Óscar Fuentes <ofv <at> wanadoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; CC Mode: Support C++ attributes
Date: Sun, 14 Jul 2019 16:49:01 +0200
CC Mode does not recognize C++ attributes. Just as an example, the
presence of an attribute causes wrong indentation on this example:

struct C {
  C([[maybe_unused]] int x, int y)
  : a(y)
  {}
  int a;
};

The line that begins with the colon should get another indentation
level.

Attributes are described here:

https://en.cppreference.com/w/cpp/language/attributes

In general, considering them part of the following token for indentation
purposes and fontifying with some existing or new face should be enough.


In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit)
 of 2019-06-29 built on sky
Repository revision: 0b2841f9fb0ffd8514b0fb99c5673adad6b07abb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 36650-done <at> debbugs.gnu.org
Subject: Re: bug#36650: 27.0.50; CC Mode: Support C++ attributes
Date: Sun, 21 Jul 2019 21:16:34 +0000
Hello again, Óscar.

On Sun, Jul 21, 2019 at 16:56:53 +0200, Óscar Fuentes wrote:
> Alan Mackenzie <acm <at> muc.de> writes:

> > Would you please apply the following supplementary patch to your current
> > master state, try it out again, and let me know how it goes.

> I repeated my attempts of breaking the new feature and now I was
> defeated :-)

Excellent!

> Thanks again Alan.

I've committed the enhancement to savannah master (warning: it's not
quite identical to the patches I sent you), and I'm closing the bug with
this post.

-- 
Alan Mackenzie (Nuremberg, Germany).


This bug report was last modified 6 years and 34 days ago.

Previous Next


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