-
Notifications
You must be signed in to change notification settings - Fork 61
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
Auto-Formatting #2248
Comments
I've always been against it as you know, primarily because it adversely affects readability of mathematical expressions. But I also acknowledge that my opinion should carry little weight given that I'm contributing very little. That said, I will also continue to claim that it is a very low burden to contribute code in the house style, whether that aim be accomplished by hand or with the assistance of local tools. |
Sure, your concerns are valid and input is always welcome. Have you taken a look at uncrustify?
I noted the willingness to compromise as a requirement above. The trade-off |
Ahah! I will take a closer look at uncrustify — my concerns may well now be moot. |
It seems a saner alternative to clang-format. |
For Python I would recommend |
Hi all,
let's make our lives a bit easier and use an auto formatter. So, decision time.
Zero: Do we?
If we go for it, we'll have to stick with it, make some compromises on style, and accept
a potentially humongous PR with all the initial change. The payoff is the peace of mind
of never having to care again.
First: How?
Based on the lay of land the only real options are clang-format and uncrustify. The former
is tricky to use and realistically must be pinned to one version.
Second: What?
This is the hard part. Once we have decided on a tool, we'll go through all the options and pick
those we like best, collectively.
The text was updated successfully, but these errors were encountered: