emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14626: closed (CC Mode 5.32.5 (C++/l); indentation


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14626: closed (CC Mode 5.32.5 (C++/l); indentation problem involving override)
Date: Mon, 22 Aug 2016 04:14:01 +0000

Your message dated Sun, 21 Aug 2016 22:13:16 -0600
with message-id <address@hidden>
and subject line Re: bug#14626: CC Mode 5.32.5 (C++/l); indentation problem 
involving override
has caused the debbugs.gnu.org bug report #14626,
regarding CC Mode 5.32.5 (C++/l); indentation problem involving override
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14626: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14626
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: CC Mode 5.32.5 (C++/l); indentation problem involving override Date: Sat, 15 Jun 2013 12:06:33 -0400 User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)
Date: Sat, 15 Jun 2013 12:03:45 -0400
Message-ID: <address@hidden>
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;
};


Emacs  : GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, X toolkit)
 of 2013-06-11 on maru
Package: CC Mode 5.32.5 (C++/l)
Buffer Style: gnu
c-emacs-features: (pps-extended-state col-0-paren posix-char-classes 
gen-string-delim gen-comment-delim syntax-properties 1-bit)

current state:
==============
-- 
Michael Welsh Duggan
(address@hidden)



--- End Message ---
--- Begin Message --- Subject: Re: bug#14626: CC Mode 5.32.5 (C++/l); indentation problem involving override Date: Sun, 21 Aug 2016 22:13:16 -0600 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
Michael Welsh Duggan <address@hidden> writes:

> Date: Sat, 15 Jun 2013 12:03:45 -0400
> Message-ID: <address@hidden>
> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]