Skip to content

Code beautifier

Simon Garnotel edited this page May 17, 2018 · 2 revisions

Code beautifier

Uncrustify is used in FreeFem++ as code beautifier.

The configuration file is in tools/.uncrustify.

Installation

Releases are available for Windows here.

On MacOS and Linux, you can compile it using the source available here.

Usage

Use the following command line (in the root of the FreeFem-sources directory):

uncrutify -c tools/.uncrutify file --replace

Where file is a C or C++ file (.c, .cpp, .h, .hpp, ...)