Revision 1 as of 2010-11-15 18:24:16

Clear message

Back to developer page.

Using uncrustify to fix code layout

We use uncrustify with a Fast Downward configuration file (.uncrustify.cfg in the repository root) to enforce some of our formatting conventions. If a source file is properly formatted, applying uncrustify should be an idempotent operation (i.e., result in an identical file). This is important so that we can verify our style rules automatically, at least for those rules which uncrustify can handle.

The repository contains a Mercurial extension that integrates uncrustify into Mercurial nicely. See ../MercurialUncrustifyExtension.

Not all aspects of source layout are handled by uncrustify, so please still pay attention to our ../C++Whitespace rules.