GNU bug report logs - #32808
25.2; Indentation after initializer list C++

Previous Next

Package: emacs;

Reported by: richard <johndoe27328 <at> gmail.com>

Date: Sat, 22 Sep 2018 17:09:01 UTC

Severity: normal

Found in version 25.2

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: Richard Case <johndoe27328 <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 32808 <at> debbugs.gnu.org
Subject: bug#32808: 25.2; Indentation after initializer list C++
Date: Sat, 22 Sep 2018 15:00:02 -0500
[Message part 1 (text/plain, inline)]
Hello Alan,

It is the position of the closing brace on the third line.

Thank you.

On Sat, Sep 22, 2018, 2:51 PM Alan Mackenzie <acm <at> muc.de> wrote:

> Hello, Richard.
>
> In article <mailman.1141.1537636151.1284.bug-gnu-emacs <at> gnu.org> you wrote:
>
> > While creating a constructor for my class, I have a multiline
> > initializer list. For the constructor, the indentation matches that of
> > the list. Here's an example:
>
> > Test::Test(const std::string &a) : a{a}, b{0},
> >                                    c{"..."}, d{""} {
> >                 /*notice the indentation*/
>           }
>
> Would you please be explicit about what is wrong with the indentation.
> Is it the position of the closing brace on line 3, or the indentation of
> "c{" on line 2, or something else?
>
> Thanks!
>
> [ .... ]
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.