TopoToolbox / libtopotoolbox

A C library for the analysis of digital elevation models.
https://topotoolbox.github.io/libtopotoolbox/
GNU General Public License v3.0
0 stars 3 forks source link

Add a .clang-format file and run format checks during CI #17

Closed wkearn closed 3 months ago

wkearn commented 3 months ago

This commit begins to solidify a style guide for libtopotoolbox (#13). clang-format addresses code formatting and not other aspects of style, however, which will need to be managed using other tools.

.clang-format is the clang-format configuration file output by clang-format -style=Google --dump-config corresponding to the Google C++ style guide

.github/workflows/ci.yaml is changed to use the jidicula/clang-format-action to run clang-format on the source files in the repository.