Author Topic: Beautifying nested C++ class declarations  (Read 1510 times)

sndom

  • Community Member
  • Posts: 70
  • Hero Points: 1
Beautifying nested C++ class declarations
« on: November 09, 2012, 11:19:34 pm »
The beautifier in 17.0.2 seems to force nested class or structure declarations into column zero. Is there a way to stop this?

Code: [Select]
class foo
{
class bar : public nonsense  // << I'd like this to be indented
    {
    };

};

Cheers

Dom

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 831
  • Hero Points: 48
Re: Beautifying nested C++ class declarations
« Reply #1 on: November 12, 2012, 02:14:58 pm »
That's a bug, it's not supposed to be doing that.  It can't be hotfixed, but I'll take a look this morning and see if there's any setting you can tweak that would prevent the bug from triggering.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 831
  • Hero Points: 48
Re: Beautifying nested C++ class declarations
« Reply #2 on: November 13, 2012, 02:26:08 pm »
There doesn't seem to be a config workaround for this one.  I've fixed it for v18. 

pmwhite

  • Community Member
  • Posts: 98
  • Hero Points: 7
Re: Beautifying nested C++ class declarations
« Reply #3 on: November 13, 2012, 10:08:35 pm »
There doesn't seem to be a config workaround for this one.  I've fixed it for v18.
How about for the upcoming 17.0.3?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 831
  • Hero Points: 48
Re: Beautifying nested C++ class declarations
« Reply #4 on: November 14, 2012, 03:30:01 pm »
I just checked it in for 17.0.3.