BCPP C/C++ Code Beautifier V1.9
Posted: Wed Feb 28, 2007 10:43 pm
I found this C/C++ code beautifier:
http://www.zeusedit.com/z300/bcpp_exe.zip
A typical command line to format example.cpp and write the beautified code to result.cpp would be:
Dispite the fact the number of configuration options provided seem fairly limited (i.e. just the bare minimum), IMHO it does a very good job of cleaning up the code
Cheers Jussi
The above link only contains the source code, so I created a Windows build of this code which can be found here:C/C++ Code Beautifier V1.9
Written by Steven De Toni December 1995
Updated by Thomas Dickey January 1997
http://dickey.his.com/bcpp/bcpp.html
http://www.zeusedit.com/z300/bcpp_exe.zip
A typical command line to format example.cpp and write the beautified code to result.cpp would be:
If you add the c:\bcpp\ instalation directory to the PATH environment variable the following command line can be used instead:c:\bcpp\bcpp.exe -fnc c:\bcpp\bcpp.cfg -fi example.cpp -fo result.cpp
In this case the bcpp.exe will go looking for the bcpp.cfg by searching the PATH environment variable.bcpp.exe -fi example.cpp -fo result.cpp
Dispite the fact the number of configuration options provided seem fairly limited (i.e. just the bare minimum), IMHO it does a very good job of cleaning up the code

Cheers Jussi