mirror of
https://github.com/boostorg/gil.git
synced 2026-01-19 16:22:14 +00:00
This is an example which offers _good enough_ configuration and may be useful when writing code for GIL, not required though. This is **not** a complete configuration! Closes #87
Boost.GIL Clang-Format
This is an example of .clang-format file which offers good enough
configuration and may be useful when writing code for GIL, not required though.
This is not a complete configuration!
It does not cover all the recommended or preferred ways of formatting the code for GIL.
It may be necessary to manually tweak the formatting generated by this .clang-format file.
For example, there is a bug in clang-format that does not allow spacing and breaking
trailing return types properly. More in details can be found in the
brainstorm of .clang-format proposal.
It has been successfully used with clang-format 8 or later.
If you wish to use this file with clang-format, copy it to the root directory of GIL
sources, to libs/gil/.clang-format.