-
Notifications
You must be signed in to change notification settings - Fork 33
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 a formatting style and apply it to the entire repo #75
Conversation
Clang Robot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@awalther1 is the license check required? I used a bot to format everything. The bot can not sign the license :D |
I think that in this case it is OK to proceed without the signed licence ;-) |
When checking which style is used to update my PR I noticed that you're running clang-format on |
Thanks for the hint! |
@cgraeser I decided to go with the latest ubuntu and clang-format versions in the action, since I would expect a higher chance that the most recent version of clang-format handles the format equally for different OS. On the other hand on systems like MacOS only a limited amount of older versions are available on brew. If we have constant trouble with the formatter because the latest clang-format version on various machines creates a different format or the github action errors because it utilizes a different version, I would create a git hook based on nixos. This would allow us to ultimately fix the os and version for the github runner and between every contributor of the package. I also dont want to add a bot that automatically commits the formatted files when there are formatting issues for a PR, because of the acceptance with the license. |
My main worry was not about the version being too new. I just wanted to hint at the fact that the precise definition of |
Hi @cgraeser what I meant above was that the robustness of the github action alone is not that helpful since every contributor would need the version that is given by the fixed ubuntu version. I would expect that this is not possible for different OS or at least it is not that easy. To gain a bit of robustness, I would assume that the newest version of clang-format for the latest OS is easier to obtain. However, if we have constant issues with it, I will change it. |
What do you think about dumping the llvm style into the |
EDIT: To make the workflow more robust (as proposed by @cgraeser)
|
This PR adds
Based on the .clang-format style, the entire repo is formatted. This will potentially cause many errors that will be fixed here.