[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15401: Incorrect indentation of c++ code
From: |
P. Pieperhoff |
Subject: |
bug#15401: Incorrect indentation of c++ code |
Date: |
Tue, 17 Sep 2013 10:06:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
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
- bug#15401: Incorrect indentation of c++ code,
P. Pieperhoff <=