BCPP usage

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
 
E

Erik Wikström

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?

You should try another group (perhaps a mailing-list for BCPP), in here
we only discuss C++ issues, not tool issues.
 
B

barcaroller

(e-mail address removed)...
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?


I have found both astyle and uncrustify to be superior to bcpp.
astyle is the more user-friendly but uncrustify is highly customizable
and can certainly do what you need.
 
S

Steven Woody

(e-mail address removed)...


I have found both astyle and uncrustify to be superior to bcpp.
astyle is the more user-friendly but uncrustify is highly customizable
and can certainly do what you need.

Thank you for your info!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top