unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c indent when a function has other attributes
@ 2025-01-08 14:47 Luca Ferrari
  0 siblings, 0 replies; only message in thread
From: Luca Ferrari @ 2025-01-08 14:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hi al,
I'm having this problem with c-mode and C-M-\ (withour any regard to
the c-style): when a function declaration has an __alignment__ gcc
macro Emacs seems to screw up all indentation.
For example:

static void foo(char *bar) __attribute__((noreturn));
static void bar();

when I indent the code I end up with something like:

static void foo(char *bar) __attribute__((noreturn));

static void bar();

where the lines following the __attribute__ macro are all screwed up.
Is there a way to instrument Emacs to "indent" by means of the semicolon?

Thanks,
Luca



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-08 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 14:47 c indent when a function has other attributes Luca Ferrari

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).