wuzhipeng2014 / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

Implement an SCons target which invokes indent(1) #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It may be interesting to have a SCons target, which invokes the
GNU indent(1) program, to format source code to our coding style.
For example:

$ scons indent SOURCE=MyFile.cpp

The indent(1) program could for example be invoked by SCons with the following
arguments:

$indent -bli0 -i4 -l80 --no-tabs -lp --blank-lines-after-procedures -fca
-d0 MyFile.cpp

A problem I've encountered when experimenting with this, is that indent(1)
treats
boxed comments (like Doxygen formatted comments) specially. It doesn't
change them in
any way, including indentation while it should in our case.

Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 11:31