Differences between revisions 1 and 2
Revision 1 as of 2010-11-15 18:24:16
Size: 791
Editor: MalteHelmert
Comment:
Revision 2 as of 2010-11-15 18:26:17
Size: 788
Editor: MalteHelmert
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
Not all aspects of source layout are handled by {{{uncrustify}}}, so please still pay attention to our [[../C++Whitespace]] rules. Not all aspects of source layout are handled by {{{uncrustify}}}, so please still pay attention to our [[../Whitespace]] rules.

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 ../Whitespace rules.

FastDownward: ForDevelopers/Uncrustify (last edited 2023-07-19 09:23:58 by JendrikSeipp)