From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#36650: 27.0.50; CC Mode: Support C++ attributes Date: Mon, 15 Jul 2019 17:17:27 +0200 Message-ID: <87muhf9vjs.fsf@telefonica.net> References: <20190715142718.71903.qmail@mail.muc.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80926"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36650@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 17:18:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn2jv-000KvJ-RI for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 17:18:07 +0200 Original-Received: from localhost ([::1]:40014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2ju-00072J-NH for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 11:18:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45693) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2jr-0006vQ-4D for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:18:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn2jq-0006R9-5d for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn2jq-0006R0-24; Mon, 15 Jul 2019 11:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn2jp-0006HK-T7; Mon, 15 Jul 2019 11:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 15 Jul 2019 15:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36650 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 36650-submit@debbugs.gnu.org id=B36650.156320386223987 (code B ref 36650); Mon, 15 Jul 2019 15:18:01 +0000 Original-Received: (at 36650) by debbugs.gnu.org; 15 Jul 2019 15:17:42 +0000 Original-Received: from localhost ([127.0.0.1]:48766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn2jW-0006EF-65 for submit@debbugs.gnu.org; Mon, 15 Jul 2019 11:17:42 -0400 Original-Received: from relayout02-redir.e.movistar.es ([86.109.101.202]:48571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn2jQ-00066Q-On for 36650@debbugs.gnu.org; Mon, 15 Jul 2019 11:17:40 -0400 Original-Received: from sky (162.red-79-151-6.dynamicip.rima-tde.net [79.151.6.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 45nRwS297Tzdbgw; Mon, 15 Jul 2019 17:17:28 +0200 (CEST) In-Reply-To: <20190715142718.71903.qmail@mail.muc.de> (Alan Mackenzie's message of "15 Jul 2019 14:27:18 -0000") X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.6.162 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 45nRwS297Tzdbgw.AD743 X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1563808648.99414@4wseS6/oBrpisn3zgmKoOA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163128 Archived-At: Alan Mackenzie 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);