From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Marc_D=FCrner?= Newsgroups: gmane.emacs.help Subject: C++ Indentation and access-labels Date: Fri, 18 Sep 2009 12:32:36 +0200 Message-ID: <52a7da0f0909180332j1d18f2bcj7b939c4dbf06b5d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175d0a3c8fe6630473d7a684 X-Trace: ger.gmane.org 1253270102 28136 80.91.229.12 (18 Sep 2009 10:35:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 10:35:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 12:34:55 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Moanm-00016F-6G for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 12:34:54 +0200 Original-Received: from localhost ([127.0.0.1]:37827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moanl-0003eq-Dt for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 06:34:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Moali-00036K-7Y for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 06:32:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Moalb-00034k-4E for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 06:32:44 -0400 Original-Received: from [199.232.76.173] (port=53335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moala-00034e-Ub for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 06:32:38 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:49742) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Moala-0007Vr-Ci for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 06:32:38 -0400 Original-Received: by bwz20 with SMTP id 20so927601bwz.42 for ; Fri, 18 Sep 2009 03:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=M8l26hcMDsTy8gj+fdmxR4cS1/ANj+vLvSE75d15xqs=; b=rRq99algSsL2Ia3RANtAKbboDR8fi7HrMwOYVEMIUowSnW+h3+/bv7sGXk5O/qfAu5 RWXJVkCO45y+rAxq+EWkHQERBQ7cqLhK+DSNj20wARRU1reg72goN6nK4s4vr+OWdb8u sjEYDtDhOn2eQu7hOg58ILcTsjg/wwV7DxX8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xUcJniiYChPP51cKTqsvpkeo3NuUGQGY5K3+uIG3mCa3KRJCoxCRXktil1W4kViZK0 Ao3872K3szU8hR/s223i9R85FgWLrAi+AJ1fpLLxZRB8d+LEK88mB6rEeyrWDXi5CnWO pqFlVGkuDSOvGKBr7TV2BrAg4bWusnOGtJbqE= Original-Received: by 10.204.154.85 with SMTP id n21mr1279956bkw.171.1253269956453; Fri, 18 Sep 2009 03:32:36 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68260 Archived-At: --0015175d0a3c8fe6630473d7a684 Content-Type: text/plain; charset=ISO-8859-1 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 --0015175d0a3c8fe6630473d7a684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am trying to set up semantic indentation for C++ and can= 9;t find a way to configure the following indentation scheme:

class = A
{
=A0=A0=A0 friend class X;

=A0=A0=A0 int x;

=A0=A0= =A0 public:
=A0=A0=A0=A0=A0=A0=A0 A();
=A0=A0=A0=A0=A0=A0=A0 ~A();
};

struct B
{
=A0=A0=A0 int n;<= br>=A0=A0=A0 bool b;
=A0=A0=A0 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 --0015175d0a3c8fe6630473d7a684--