Current, I have comment looks like this.
/*
* comments....
* comments....
* comments....
*/
If I touch astyle and it always will ending up like this by remove the first space.
/*
* comments....
* comments....
* comments....
*/
Is there any option to disable it, or is it bug, or is it normal?
Uh oh, looks like forum has removed the first space too in the first example above. I had to add tab in the third example to workaround for this forum to show the * is supposed to be straight in the first example.
/*
* comments....
* comments....
* comments....
*/
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.
Yes, you are right :). I have tried your array with ANSI style and got:
char[25] mychars =
{
1,2,3,4,5
};
I suppose that this is not what you would like to have.
Michael
There are two options in the aStyle plugin configuration:
Don't break complex statements and multiple statements residing in a single line
and
Don't break one line blocks
which don't seem to do anything.
Let's say you have a class with several methods like this:
int GetHeight() const {return cy;}
int GetWidth() const {return cx;}
int GetX() const {return x;}
int GetY() const {return y;}
Even with both the above options checked, when you run aStyle you get this:
int GetHeight() const
{
return cy;
}
int GetWidth() const
{
return cx;
}
int GetX() const
{
return x;
}
int GetY() const
{
return y;
}
What are these options for if not for this?
Many thanks.