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
Add clang format #277
Comments
Sounds like a good idea. |
I don't know if this is what we want. When we will add the formater, the first commit will contain a huge amount of lines changed, which will ruin git blame in almost all files. This must be taken into account before adding it. |
Alright, should we move that feature in v2.0.0 then? |
I think it would more reasonable, since history is less important between major releases. |
A note about that. We had a similar discussion in aseba. Beside breaking the history, automatic formatting also breaks some special formatting done on purpose by the programmer (for example to define a matrix or highlight the specifics of an equation). For new code, a |
Specifications:
|
This file might be a useful starting point for the formatting rules, as both aseba and libpointmatcher kind of follow "my" style. |
I try 2 weeks ago to create a clang-format which cover the libpointmatcher style. It seems libpointmatcher follows aseba style. |
Hi all, Would it be possible to re-consider integrating a formatter? Both to old and new code. It would simplify debugging, reviewing pull requests, and contributing (if you have a fork), without spending too much time on style discussions and fixing syntax. |
I fine with the idea. Could you prepare a PR? |
Yes. I second @PhiBabin proposal to use clang format, which is easy to run from CLI, with modern IDEs (for example, VSCode), is also used by other ASL projects, and gives quite a bit of flexibility. I would divide the contribution in two PRs
|
It would be easier to submit pull request, if the indentation/format rules were enforced by an automatic tools like clang-format.
The text was updated successfully, but these errors were encountered: