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

Clang-format #28

Open
JensWehner opened this issue Jan 17, 2021 · 1 comment · May be fixed by #51
Open

Clang-format #28

JensWehner opened this issue Jan 17, 2021 · 1 comment · May be fixed by #51
Milestone

Comments

@JensWehner
Copy link
Contributor

Would you be interested in using clang-format to have a standard format of your source code?

I would submit a PR for that if you find

Advantages:

  • all code has the same format, consistency
  • When reviewing formatting can be checked automatically
  • Makes other automated refactoring of the code easier
  • clear specification of what format is expected

Disadvantages:

  • clang-format formats slightly differently from version to version, so we would need to agree on one
  • typically one would reformat the whole codebase in one commit, which would trash the history a little bit, because nearly every line in the code will be touched.
@robashaw
Copy link
Owner

I'm tagging this as a v1.1 goal, as I like the idea in principle but it's certainly not a priority change right now.

@robashaw robashaw added this to the 1.1 milestone Jan 24, 2021
@robashaw robashaw linked a pull request Sep 13, 2021 that will close this issue
@robashaw robashaw linked a pull request Sep 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants