flint icon indicating copy to clipboard operation
flint copied to clipboard

Use `clang-format` in a CI job

Open albinahlback opened this issue 1 year ago • 2 comments

Just something simple to check that the code is somewhat nicely formatted.

albinahlback avatar Jan 28 '25 09:01 albinahlback

We also discussed this in the last workshop, but I didn't get into it

edgarcosta avatar Jan 28 '25 14:01 edgarcosta

There also is git clang-format that, appropriate arguments, only formats those parts of those files that have been touched since the git merge-base of the PR. This would make it possible to gradually improve code formatting every time something gets touched anyway, in contrast to one gigantic PR that adapts all current files.

What certainly is missing, is a .clang-format config that resembles the wanted formatting style.

lgoettgens avatar Jan 28 '25 15:01 lgoettgens