Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clang-format in a CI job #2200

Open
albinahlback opened this issue Jan 28, 2025 · 2 comments
Open

Use clang-format in a CI job #2200

albinahlback opened this issue Jan 28, 2025 · 2 comments

Comments

@albinahlback
Copy link
Collaborator

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

@edgarcosta
Copy link
Member

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

@lgoettgens
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants