GNU bug report logs - #15401
Incorrect indentation of c++ code

Previous Next

Packages: cc-mode, emacs;

Reported by: "P. Pieperhoff" <p.pieperhoff <at> fz-juelich.de>

Date: Tue, 17 Sep 2013 15:21:03 UTC

Severity: normal

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

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 15401 in the body.
You can then email your comments to 15401 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15401; Package emacs. (Tue, 17 Sep 2013 15:21:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "P. Pieperhoff" <p.pieperhoff <at> fz-juelich.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Sep 2013 15:21:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "P. Pieperhoff" <p.pieperhoff <at> fz-juelich.de>
To: <bug-gnu-emacs <at> gnu.org>
Subject: Incorrect indentation of c++ code
Date: Tue, 17 Sep 2013 10:06:42 +0200
Dear all,

I encountered a problem with the automatic indentation of the following
c++ code:


const int Something = 10;

void dummy(int a)
{
  cout  << "xxxx " << a << " bbbbbbbbbbbb ";
}

MyClass::MyClass(const int n1, const int n2, const int n3, const int n4) :

  m_Var1(123, 1, Something),
  m_Var2(123, 1, Something),
  m_Var3(123, 1, Something),
  m_Var4(123, 1, Something),
  m_Var5(123, 1, Something),
  m_Var6(123, 1, Something),
  m_Var7(123, 1, Something),
  m_Var8(123, 1, Something),
  m_Var9(123, 1, Something),
  m_Var10(123, 1, Something),
  m_Var11(123, 1, Something),
  m_Var12(123, 1, Something),
  m_Var13(123, 1, Something),
  m_Var14(123, 1, Something),
  m_Var15(123, 1, Something),
               m_Var16(123, 1, Something),
               m_Var17(123, 1, Something),
               m_Var18(123, 1, Something),
               m_Var19(123, 1, Something)

{
  return;
}


But when I decomment the line with "cout << ..." in the function dummy,
the indendation of the member variable initializations is correct.


I used emacs version:
GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4)
 of 2013-02-21 on build16



Best regards,
Peter




------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Das Forschungszentrum oeffnet seine Tueren am Sonntag, 29. September, von 10:00 bis 17:00 Uhr: http://www.tagderneugier.de




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#15401; Package emacs,cc-mode. (Tue, 17 Sep 2013 19:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 15401 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "P. Pieperhoff" <p.pieperhoff <at> fz-juelich.de>
Cc: 15401 <at> debbugs.gnu.org
Subject: Re: bug#15401: Incorrect indentation of c++ code
Date: Tue, 17 Sep 2013 15:07:07 -0400
I see this in 24.2 and 24.3, but not current trunk, so it seems to have
been fixed already.




bug marked as fixed in version 24.4, send any further explanations to 15401 <at> debbugs.gnu.org and "P. Pieperhoff" <p.pieperhoff <at> fz-juelich.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 10 Feb 2014 21:31:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Mar 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 105 days ago.

Previous Next


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