S
Steven Woody
Hi,
I am trying to use BCPP to format many of old cpp codes.
Case 1: What I expected is something like:
....
if ( ... ) {
...;
} else {
...
}
but with BCPP's Place_Brace_On_New_Line = false, I can only get,
if ( ... ) {
...;
}
else {
...
}
It's strange and not K&R.
Case 2: What I expected is,
class ABC
{
public:
void foo( void );
....
private:
....
....
};
But I got:
class ABC
{
public:
void foo( void );
....
private:
....
....
};
There are too many level of indentations.
Would you anyone please tell me how can I properly use BCPP to get
what I expected results? Or should I go for another code beautifier?
Thanks in advance.
-
narke
I am trying to use BCPP to format many of old cpp codes.
Case 1: What I expected is something like:
....
if ( ... ) {
...;
} else {
...
}
but with BCPP's Place_Brace_On_New_Line = false, I can only get,
if ( ... ) {
...;
}
else {
...
}
It's strange and not K&R.
Case 2: What I expected is,
class ABC
{
public:
void foo( void );
....
private:
....
....
};
But I got:
class ABC
{
public:
void foo( void );
....
private:
....
....
};
There are too many level of indentations.
Would you anyone please tell me how can I properly use BCPP to get
what I expected results? Or should I go for another code beautifier?
Thanks in advance.
-
narke