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

Added unenforced autoformatter #235

Merged
merged 3 commits into from
May 16, 2023
Merged

Conversation

TheButlah
Copy link
Contributor

@TheButlah TheButlah commented Mar 27, 2023

In preparation for enforcing autoformatting across the codebase, I have come up with a clang-format style that I think is familiar.
If there are any really bad issues with it, please let me know and suggest some alternative settings. But I caution those giving feedback to not engage in a flame war or endless bikeshedding - its unlikely that we will ever all be satisfied with the exact format due to the lack of a historical precedent in C++.

You can upload this to this site to try it out.

Note that clang format doesn't make any stylistic choices concerning snake_case or camelCase, or member variable naming conventions.

Also note that this disables autoformatting of lib, since that is all third-party code.

@Eirenliel Eirenliel merged commit ab6d426 into SlimeVR:main May 16, 2023
@TheButlah TheButlah deleted the add-clang-format branch May 16, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants