From: "Marc Dürner" <marc.duerner@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: C++ Indentation and access-labels
Date: Fri, 18 Sep 2009 12:32:36 +0200 [thread overview]
Message-ID: <52a7da0f0909180332j1d18f2bcj7b939c4dbf06b5d@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
Hello,
I am trying to set up semantic indentation for C++ and can't find a way to
configure the following indentation scheme:
class A
{
friend class X;
int x;
public:
A();
~A();
};
struct B
{
int n;
bool b;
char c;
};
I want to have class members and friend declarations indented by one level
is no access-label is present. If an acces-label is present it should be
indented and the class members that follow that access-label should be
indented further. It seems the is no way to handle class memers differently
if they are following an access-label. In the example above 'x' and 'A();'
are both classified as inclass/topmost-intro.
Is there a way to configure this?
regards,
Marc
[-- Attachment #2: Type: text/html, Size: 878 bytes --]
next reply other threads:[~2009-09-18 10:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 10:32 Marc Dürner [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-09-14 14:27 C++ Indentation and access-labels Marc Dürner
2009-09-18 22:12 ` Alan Mackenzie
[not found] ` <52a7da0f0909210708x21945b5ej557d4cd8b77a17cf@mail.gmail.com>
[not found] ` <20090925082833.GA2596@muc.de>
2009-09-28 16:39 ` Marc Dürner
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52a7da0f0909180332j1d18f2bcj7b939c4dbf06b5d@mail.gmail.com \
--to=marc.duerner@googlemail.com \
--cc=help-gnu-emacs@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.
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).