Skip to content

Using uncrustify

Julien Y. Dutheil edited this page Sep 17, 2021 · 1 revision

Uncrustify is a highly configurable code beautifier http://uncrustify.sourceforge.net/. A configuration file has been created with the syntax commonly used in the Bio++ code. To format your code, download the configuration file https://github.com/BioPP/bpp-documentation/blob/main/files/Biopp_uncrustify.txt and run the following command:

uncrustify -c biopp_uncrustify.txt --no-backup <your code file>

Only use the no-backup option if you are using a versioning system! Not using this option will not alter you original file and create a copy, with .uncrustify extension.

Clone this wiki locally