From: "P. Pieperhoff" <p.pieperhoff@fz-juelich.de>
To: 15401@debbugs.gnu.org
Subject: bug#15401: Incorrect indentation of c++ code
Date: Tue, 17 Sep 2013 10:06:42 +0200 [thread overview]
Message-ID: <52380D92.6020004@fz-juelich.de> (raw)
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
next reply other threads:[~2013-09-17 8:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 8:06 P. Pieperhoff [this message]
2013-09-17 19:07 ` bug#15401: Incorrect indentation of c++ code Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52380D92.6020004@fz-juelich.de \
--to=p.pieperhoff@fz-juelich.de \
--cc=15401@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.