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
Original issue reported on code.google.com by
coenbijlsma
on 7 Aug 2009 at 11:31