emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59966: closed ([PATCH] [Tree-sitter] Align C++ access specifiers to


From: GNU bug Tracking System
Subject: bug#59966: closed ([PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union)
Date: Mon, 12 Dec 2022 22:40:02 +0000

Your message dated Mon, 12 Dec 2022 14:39:12 -0800
with message-id <8CF5631A-75E2-46FD-AC82-0247C5ED0D06@gmail.com>
and subject line Re: bug#59966: [PATCH] [Tree-sitter] Align C++ access 
specifiers to  their enclosing class/struct/union
has caused the debbugs.gnu.org bug report #59966,
regarding [PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing 
class/struct/union
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59966: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59966
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union Date: Sun, 11 Dec 2022 16:19:13 +0100
Tags: patch


The following C++ class is indented differently in c++-mode and
c++-ts-mode:

class Sample {
public:
void sample();
private:
int a;
};

c++-mode indents it like

class Sample {
public:
  void sample();
private:
  int a;
};

c++-ts-mode indents it like

class Sample {
public:
void sample();
private:
int a;
};

I've attached a patch so that C++ classes are indented the same in
c++-mode and c++-ts-mode when the default style is used.

Thanks.

Attachment: 0001-Align-C-access-specifiers-to-their-enclosing-class-s.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#59966: [PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union Date: Mon, 12 Dec 2022 14:39:12 -0800
Daniel Martín <mardani29@yahoo.es> writes:

> Tags: patch
>
>
> The following C++ class is indented differently in c++-mode and
> c++-ts-mode:
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> c++-mode indents it like
>
> class Sample {
> public:
>   void sample();
> private:
>   int a;
> };
>
> c++-ts-mode indents it like
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> I've attached a patch so that C++ classes are indented the same in
> c++-mode and c++-ts-mode when the default style is used.
>
> Thanks.
>

Thanks! I applied the patch.

Yuan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]