astyle...

Chris Johns chrisj at rtems.org
Sun Jul 19 00:02:05 UTC 2015


On 19/07/2015 2:08 am, Ed Sutter wrote:
> Anyone have any objections to me making one pass on the umon main and
> apps directory with astyle?
> It will clean up tabs and a few other things...
> 
> astyle --unpad-paren --align-pointer=name --add-brackets --convert-tabs
> --style=knf -A4 <filename>
> 
> Yea, I should have done this prior to handing the code over, but...
> :-(

The change now is fine. It is all part of the history.

> 
> Assuming no objections, I'd like to then make it a rule that this
> command be run on
> any new stuff.  I say this knowing that I'll be guilty of not always
> adhering to
> the style, so this enforces is.
> Is that reasonable?

The astyle tool is fine. It is available on FreeBSD and Windows (MSYS2)
and I did not look at building it for MacOS.

I suggest you add a build target to your build system.

Chris



More information about the umon-devel mailing list