GNU bug report logs -
#8923
23.3; Indentation c++0x
Previous Next
Reported by: Nicolai Bodd <nicolai.bodd <at> gmail.com>
Date: Thu, 23 Jun 2011 15:13:02 UTC
Severity: wishlist
Found in version 23.3
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8923 in the body.
You can then email your comments to 8923 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8923
; Package
emacs
.
(Thu, 23 Jun 2011 15:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nicolai Bodd <nicolai.bodd <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 23 Jun 2011 15:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Emacs should support a c++0x, when it comes to indentation of lamdas and
for_each.
In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601)
of 2011-03-10 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 6.1.7601
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#8923
; Package
emacs,cc-mode
.
(Tue, 01 Oct 2019 20:12:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8923 <at> debbugs.gnu.org (full text, mbox):
Nicolai Bodd <nicolai.bodd <at> gmail.com> writes:
> Emacs should support a c++0x, when it comes to indentation of lamdas and
> for_each.
Hi Alan,
This was reported 8 years ago. Is this wishlist item still relevant,
or has support for this been added since?
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#8923
; Package
emacs,cc-mode
.
(Wed, 02 Oct 2019 05:51:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 8923 <at> debbugs.gnu.org (full text, mbox):
I honestly don’t know if this has been resolved. I am fine with this item being closed.
> 1. okt. 2019 kl. 22:11 skrev Stefan Kangas <stefan <at> marxist.se>:
>
> Nicolai Bodd <nicolai.bodd <at> gmail.com> writes:
>
>> Emacs should support a c++0x, when it comes to indentation of lamdas and
>> for_each.
>
> Hi Alan,
>
> This was reported 8 years ago. Is this wishlist item still relevant,
> or has support for this been added since?
>
> Best regards,
> Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#8923
; Package
emacs,cc-mode
.
(Wed, 02 Oct 2019 09:38:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 8923 <at> debbugs.gnu.org (full text, mbox):
Nicolai Bodd <nicolai.bodd <at> gmail.com> writes:
> I honestly don’t know if this has been resolved. I am fine with this item being closed.
[...]
> >> Emacs should support a c++0x, when it comes to indentation of lamdas and
> >> for_each.
Thanks for reporting back. I think we should try to get confirmation
that this has indeed been implemented first, so let's hear what Alan
has to say.
In the meantime, it would be helpful if we could have an example of
some code where this indentation applies. That would help us verify
that it works as expected. Would you be willing to help provide such
an example?
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#8923
; Package
emacs,cc-mode
.
(Wed, 02 Oct 2019 19:42:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 8923 <at> debbugs.gnu.org (full text, mbox):
Hello Stefan and Nicolai.
On Wed, Oct 02, 2019 at 11:37:02 +0200, Stefan Kangas wrote:
> Nicolai Bodd <nicolai.bodd <at> gmail.com> writes:
Nicolai, I'm sorry I missed your bug report originally. At the time, I
had no idea how to go about implementing (what was to become) C++11. I
didn't really get started on the job until spring 2012.
> > I honestly don’t know if this has been resolved. I am fine with this
> > item being closed.
> [...]
> > >> Emacs should support a c++0x, when it comes to indentation of
> > >> lamdas and for_each.
> Thanks for reporting back. I think we should try to get confirmation
> that this has indeed been implemented first, so let's hear what Alan
> has to say.
Yes, lambda forms and the "colon" form of for:
for (foo : <collection>) {}
have both been implemented.
> In the meantime, it would be helpful if we could have an example of
> some code where this indentation applies. That would help us verify
> that it works as expected. Would you be willing to help provide such
> an example?
There is an extensive regression test suite for CC Mode at
http://cc-mode.sourceforge.net, contained in the CC Mode repository. It
focuses almost entirely on (static) indentation and fontification. It
gets updated fairly frequently, as new bugs come to light.
Examples of C++ lambda expression and for statements are in this test
suite. E.g., forloop-7.cc looks like:
static void DoFoo(const CXXRecordDecl *Class) {
for (auto *Friend : Class->friends()) {}
}
> Best regards,
> Stefan Kangas
--
Alan Mackenzie (Nuremberg, Germany).
Reply sent
to
Stefan Kangas <stefan <at> marxist.se>
:
You have taken responsibility.
(Thu, 03 Oct 2019 03:50:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nicolai Bodd <nicolai.bodd <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 03 Oct 2019 03:50:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 8923-done <at> debbugs.gnu.org (full text, mbox):
Hi Alan,
Alan Mackenzie <acm <at> muc.de> writes:
> > Thanks for reporting back. I think we should try to get confirmation
> > that this has indeed been implemented first, so let's hear what Alan
> > has to say.
>
> Yes, lambda forms and the "colon" form of for:
>
> for (foo : <collection>) {}
>
> have both been implemented.
Thanks; I'm therefore closing this bug report.
> There is an extensive regression test suite for CC Mode at
> http://cc-mode.sourceforge.net, contained in the CC Mode repository. It
> focuses almost entirely on (static) indentation and fontification. It
> gets updated fairly frequently, as new bugs come to light.
Interesting. I'll try to remember that.
Best regards,
Stefan Kangas
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 31 Oct 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 172 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.