SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: scott.zzz on September 08, 2016, 06:45:38 PM

Title: SE 2.0.0.3.0 C++ Beautifier Issues
Post by: scott.zzz on September 08, 2016, 06:45:38 PM
I am running into issues when running the beautifier with VC++ code, any time the type of the first parameter is marked with a circumflex (^), i.e:

void foo( int^ i, int j)
{
    if(...)
  {
  }
}

But if I remove the circumflex, it will format everything as expected:
void foo( int i, int j)
{
  if(...)
  {
  }
}

I have looked through all of the configuration options available for my beautify profile, but have not been able to correct this. Anyone have any ideas on how I can rectify this?
Title: Re: SE 2.0.0.3.0 C++ Beautifier Issues
Post by: Tim Kemp on September 08, 2016, 07:07:20 PM
Does that have some esoteric meaning that I'm not aware of? Or is it a syntax error?

If it's a syntax error, this is what they told me recently: https://community.slickedit.com/index.php/topic,13856.msg54387.html (https://community.slickedit.com/index.php/topic,13856.msg54387.html)
Title: Re: SE 2.0.0.3.0 C++ Beautifier Issues
Post by: patrick on September 08, 2016, 07:08:21 PM
The C++ beautifier doesn't support the C++/CLI or "Managed Extensions for C++" syntax, there hasn't been a lot of demand for it.  There is an existing feature request I can add a reference to this post as another vote for it though. 

Title: Re: SE 2.0.0.3.0 C++ Beautifier Issues
Post by: scott.zzz on September 08, 2016, 07:32:38 PM
Gotcha, I was guessing it had to do with the lack of support with C++/CLI. Was hoping there would be some non-obvious beautifier configuration I could use to prevent the odd formatting from occurring. 
Title: Re: SE 2.0.0.3.0 C++ Beautifier Issues
Post by: patrick on September 08, 2016, 07:50:40 PM
I don't think there's a way to cheese it through for this case.

And this is just for the beautifier - the tagging supports the CLI syntax, so completions and the like should still work.