473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

BCPP usage

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
Jun 27 '08 #1
3 1658
On 2008-06-07 10:33, Steven Woody wrote:
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.

--
Erik Wikström
Jun 27 '08 #2

"Steven Woody" <na********@gmail.comwrote in message
news:5049bc43-816c-4a86-af7c-
f2**********@v1g2000pra.googlegroups.com...
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.

Jun 27 '08 #3
On Jun 7, 10:12 pm, barcaroller <barcarol...@gmail.comwrote:
"Steven Woody" <narkewo...@gmail.comwrote in message

news:5049bc43-816c-4a86-af7c-
f24e95e75...@v1g2000pra.googlegroups.com...
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.
Thank you for your info!
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
11
by: Paulo Eduardo | last post by:
Hi, All! We are developing one app for windows 95/98/Me/NT4.0/2000/XP/2003 using Visual C++ 6.0. We need to set the % of CPU Usage to app process. Is there an API to set % of CPU Usage? Can...
10
by: rdemyan via AccessMonster.com | last post by:
My app contains utility meter usage. One of the things we have to deal with is when a usage is clearly incorrect. Perhaps someone wrote the meter reading down incorrectly or made a factor of 10...
3
by: Sirisha | last post by:
I am using the following code to get the CPU usage PerformanceCounter myCounter; myCounter = new PerformanceCounter(); myCounter.CategoryName = "Processor"; myCounter.CounterName = "%...
1
by: spacecoyote | last post by:
I tried this: usage = "Something, by Spacecoyote\nusage: %prog file " parser = OptionParser(usage) test.py --help and I expected: Something, by Spacecoyote usage: test.py file
2
by: jld | last post by:
Hi, I developed an asp.net based eCommerce Website for a client and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.