As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
/* * comments.... * comments.... * comments.... */
/** comments....* comments....* comments....*/
The problem is probably one of the options you are using, like pad-parens or pad-operators. Try it without either of these options.
Looking for new maintainerI decided that the legacies involved in AStyle were too much of a hindrance for me to make any significant progress towards the 1.17.0 release I have been battling for whenever I picked up the thread again. If anyone is willing to continue this project, please contact devsolar@users.sourceforge.net. I will soon start work on a source reformatter specialized on C++ instead. I don't know much about C#, and AFAIK there are good Java reformatters readily available, so compatibility to those languages was one of the main roadblocks for me in AStyle. Perhaps I can make better progress that way. Sorry for taking so long to realize I'm not the person to bring AStyle forward.
I'd say that's a bug, an AStyle bug, but since AStyle development has stopped, it'd be kinda useless to add a bug report, or it could be reported already.I hope AStyle's replacement be developed and released soon...
I'm working on a plugin that does format-as-you-type, and can reformat code when you paste it (just the code you pasted, say copy and paste from one program to another), similar to what Visual Studio 2005 can do with C# code, if you are familiar with that.
I'm working on a plugin that does format-as-you-type
THING thing{0};
THING thing { 0};
CodeTHING thing{0};becomes:CodeTHING thing { 0};no matter what options I try.
I think this is the way of initializing C Arrays.char[25] mychars = {1,2,3,4,5, (etc) }; And that's very different from functions.
char[25] mychars = { 1,2,3,4,5 };
Don't break complex statements and multiple statements residing in a single line
Don't break one line blocks
int GetHeight() const {return cy;} int GetWidth() const {return cx;} int GetX() const {return x;} int GetY() const {return y;}
int GetHeight() const { return cy; } int GetWidth() const { return cx; } int GetX() const { return x; } int GetY() const { return y; }