unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15401: Incorrect indentation of c++ code
@ 2013-09-17  8:06 P. Pieperhoff
  2013-09-17 19:07 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: P. Pieperhoff @ 2013-09-17  8:06 UTC (permalink / raw)
  To: 15401

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#15401: Incorrect indentation of c++ code
  2013-09-17  8:06 bug#15401: Incorrect indentation of c++ code P. Pieperhoff
@ 2013-09-17 19:07 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-09-17 19:07 UTC (permalink / raw)
  To: P. Pieperhoff; +Cc: 15401


I see this in 24.2 and 24.3, but not current trunk, so it seems to have
been fixed already.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-17 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17  8:06 bug#15401: Incorrect indentation of c++ code P. Pieperhoff
2013-09-17 19:07 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).