Author Topic: Bad formatting of C++ aggregate function parameter?  (Read 187 times)

rgloden

  • Senior Community Member
  • Posts: 155
  • Hero Points: 5
Bad formatting of C++ aggregate function parameter?
« on: June 01, 2018, 11:22:22 pm »
In C++, when using an aggregate as a function parameter, SE is indenting the aggregate at the same level as the call and not as a parameter.  Happening in both V21 and V22, Windows and Linux.  I didn't find any Beautify options to change this behavior.

Code: [Select]
void expected()
{
   enable( 5000,
           { STOP_NOW, 0, "myString" },
           200 );
}


void actual()
{
   enable( 5000,
   { STOP_NOW, 0, "myString" },
           200 );
}

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4161
  • Hero Points: 295
Re: Bad formatting of C++ aggregate function parameter?
« Reply #1 on: June 02, 2018, 07:00:12 pm »
I also found some problems with smart indenting with Enter. I'll check in a hotfix for smart indenting. Doubt the beautifier issue is hot fixable.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 863
  • Hero Points: 55
Re: Bad formatting of C++ aggregate function parameter?
« Reply #2 on: June 06, 2018, 01:50:57 pm »
The beautifier fix is indeed not hot-fixable.  I've checked in the fix for the next release.