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: Óscar Fuentes <ofv <at> wanadoo.es>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 36650 <at> debbugs.gnu.org
Subject: bug#36650: 27.0.50; CC Mode: Support C++ attributes
Date: Mon, 15 Jul 2019 17:17:27 +0200
Alan Mackenzie <acm <at> muc.de> writes:

> Yes.  I'll have a look at this.

Thanks.

>> In general, considering them part of the following token for indentation
>> purposes and fontifying with some existing or new face should be enough.
>
> I will probably end up treating attributes as syntactic whitespace.
> They have no syntactic connection with the code they are embedded in,
> any more than macros do.

I don't know how syntactic whitespace works on CC Mode, so just in case
I'll mention that this code

int foo([[maybe_unused]] int a,
        int b);
        
should not be formatted as

int foo([[maybe_unused]] int a,
                         int b);




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.