unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36650: 27.0.50; CC Mode: Support C++ attributes
@ 2019-07-14 14:49 Óscar Fuentes
       [not found] ` <mailman.1275.1563115806.2688.bug-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Óscar Fuentes @ 2019-07-14 14:49 UTC (permalink / raw)
  To: 36650


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)





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-21 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-14 14:49 bug#36650: 27.0.50; CC Mode: Support C++ attributes Óscar Fuentes
     [not found] ` <mailman.1275.1563115806.2688.bug-gnu-emacs@gnu.org>
2019-07-15 14:27   ` Alan Mackenzie
2019-07-15 15:17     ` Óscar Fuentes
2019-07-20 18:02       ` Alan Mackenzie
2019-07-20 22:21         ` Óscar Fuentes
2019-07-21 11:33           ` Alan Mackenzie
2019-07-21 14:56             ` Óscar Fuentes
2019-07-21 21:16               ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).