spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Use clang-format #550

Open MSallermann opened 4 years ago

MSallermann commented 4 years ago

Using clang-format seems to be a good way to enforce uniform formatting across the code.

GPMueller commented 3 years ago

Initial format config and formatting of ui-qt merged into develop with 4b439cee98fa36b7ce78147bba3c93d67cb147a4. The remaining code should probably only slowly be updated, as it will cause pull requests to have a huge amount of conflicts.

GPMueller commented 2 years ago

The remaining files have been formatted with commit 489df949054c9389e0bbc3aa4b27723d689d11d6.

@MSallermann should I add a format-check to the CI? Here is how it would look in the ci.yaml: https://github.com/GPMueller/imgui-app/blob/8f0a1b262767887632b0c8f77b482e403d0367ad/.github/workflows/ci.yml#L125-L164