C++ formatter/beautifier?
Hello
I am wondering if anybody can point me to a good, free C++ formatter/beautifier. I'm looking for something that offers the level of control that the Unix/Linux 'indent' program provides, but for C++ (indent has some quirks when applied to C++). I have spent a while Googling for something along these lines, but haven't come up with anything, only various very basic formatting programs like Artistic Style. It would be best if someone could point me to an open-source program, but I'm willing to work with something that's free .
Re: C++ formatter/beautifier?
This is a parsing tool and a universal source code generator that interprets a scripting language. The language provides the function
'indentFile()'.
If you just have a file to indent, write a single-line script, called "indent.cws" for instance:
indentFile("my-C++-file.cpp");
and type:
codeworker indent.cws
If you have more files to indent, change "indent.cws" to:
forfile i in "*.cpp" indentFile(i);
forfile i in "*.h" indentFile(i);