olang | O Programming Language


5.2 Code Style

Instead of delineating every element of our coding style, we have adopted the use of clang-format to enforce the olang code style. Please refer to the format section below for guidance on its application.

5.2.1 Code Formatting

Checking for format issues:

$ make format

Most of the common code style mistakes are fixed by:

$ make format-fix

5.2.2 .editorconfig

We also provide a .editorconfig file at project’s root. Follow https://editorconfig.org/ to learn how to make it work with your favorite editor.