From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#14626: CC Mode 5.32.5 (C++/l); indentation problem involving override Date: Sun, 21 Aug 2016 22:13:16 -0600 Message-ID: <874m6dqw4j.fsf@gmail.com> References: <8738sjqrxy.fsf@maru.md5i.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471839263 16908 195.159.176.226 (22 Aug 2016 04:14:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2016 04:14:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 14626-done@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 06:14:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbgcs-00044M-OO for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 06:14:18 +0200 Original-Received: from localhost ([::1]:39391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbgcp-0007y6-MQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 00:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbgch-0007xu-35 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 00:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbgcc-0000oj-98 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 00:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbgcc-0000oY-58; Mon, 22 Aug 2016 00:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbgcc-00026w-0V; Mon, 22 Aug 2016 00:14:02 -0400 Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 22 Aug 2016 04:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14626 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Mail-Followup-To: 14626@debbugs.gnu.org, agrambot@gmail.com, mwd@md5i.com Original-Received: via spool by 14626-done@debbugs.gnu.org id=D14626.14718392068057 (code D ref 14626); Mon, 22 Aug 2016 04:14:01 +0000 Original-Received: (at 14626-done) by debbugs.gnu.org; 22 Aug 2016 04:13:26 +0000 Original-Received: from localhost ([127.0.0.1]:36360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbgc1-00025t-Od for submit@debbugs.gnu.org; Mon, 22 Aug 2016 00:13:25 -0400 Original-Received: from mail-io0-f178.google.com ([209.85.223.178]:35571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbgc0-00025g-7g for 14626-done@debbugs.gnu.org; Mon, 22 Aug 2016 00:13:24 -0400 Original-Received: by mail-io0-f178.google.com with SMTP id m101so98905495ioi.2 for <14626-done@debbugs.gnu.org>; Sun, 21 Aug 2016 21:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=VhS8S37bidiLc2wdTxqQ1FpZgRCxCM32niVmO3zoj8U=; b=bSDpHx6dBAQE6cEkR1XP+AXxl3xVSLNkJFb5vi/ojLLIQHuR1f+nab7sA+3ue38ctu +X3IjKHMtsmrsLO0teQC7FwkDHhfYE0CA/tHmHoF2vgKVtQK0VrWA82A8+JVXTZWNxq5 k5rg5+5kKu9DFibIAoJnEYPiFL+fauxGXvxxd6/Rv4C80Zj72+gJfZjyAFdO7Y3svNXj /swyWzrxMmurPSMCE2QZaLfIXPL1/KELtOw0Mo3HeNhzG8WNaME35Sia57WLe+Gs/sSh uVbgKy0JnZAyNaJB66Q99udgdHx3wWHuPBNqzUZI2WQWVB1gUIm5q2Mgow4QxAOVnWjf ns2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=VhS8S37bidiLc2wdTxqQ1FpZgRCxCM32niVmO3zoj8U=; b=Yzg0PuMQlK1dKfeFnCQupNBwuB7YTDQ5LICDvvUyYxAP7x/ZY3MKvBhwJrk3s5khU3 dUNVRAH6XMxpggKX2ruuifKJvycTP0dPhN1gb13yTfKMiZpV/au1bY47NWPJzkNw1At9 H3eIQMBjfzwEfT3BaEuyw5IBfJfPis48zLtRsPR/NsjBOSUl4MUyYyWr1ybFkUDFVEhh T+GsxNyhpGMR5DgqlFQrOrECL6xhnv6Wp/2xElMXKpzBHvvE/UXdr9BrMcDg8sjloHbf GqWdP6arUWHeZB8fYm18xtpU/ECNYhrGOXGFcXxMcz0X/+JMqplS1PBQu9z2k9lq3XZq Ex1g== X-Gm-Message-State: AEkoouvuv5I+hnA8qP81qsLtFfW89ISxlDcBt9+wC2aIE68kxcAX6A9uSJYNI6P0D/uVyw== X-Received: by 10.107.18.101 with SMTP id a98mr25195978ioj.116.1471839198601; Sun, 21 Aug 2016 21:13:18 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id e6sm304666ith.0.2016.08.21.21.13.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Aug 2016 21:13:18 -0700 (PDT) In-Reply-To: <8738sjqrxy.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Sat, 15 Jun 2013 12:06:33 -0400") 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: 208.118.235.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:122482 Archived-At: Michael Welsh Duggan writes: > Date: Sat, 15 Jun 2013 12:03:45 -0400 > Message-ID: <87a9mrqs2m.fsf@maru.md5i.com> > User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) > > In c++-mode, the following class gets indented correctly: > > class Foo > { > Foo > foo() > const; > }; > > as does this: > > class Foo > { > Foo * > foo() > const; > }; > > and this: > > class Foo > { > Foo > foo() > const > override; > }; > > > But the following does not: > > class Foo > { > Foo * > foo() > const > override; > }; This indents correctly since 24.4. > It looks to me that "noexcept", "override", and "final" may need to be > added to c-type-modifier-kwds. Or maybe more appropriately in > c-type-decl-suffix-key, since they can only appear at the end of a > declaration. A brief scan through cc-langs.el shows that there might > need to be a few other new c++11 symbols added as well, such as > "constexpr". "decltype" might be particularly troublesome, as it is a > type that includes an argument in parentheses. > Please note that "noexcept", like "throw", can have a parenthetical > expression after it. It appears that these keywords (apart from decltype) were added in time for 25.1. decltype appears to be in master. I'm closing the bug due to the above. Please re-open if you disagree.