Added unenforced autoformatter #285

Closed
opened 2026-04-05 17:52:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @TheButlah on 3/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.

*Originally created by @TheButlah on 3/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](https://clang-format-configurator.site/) 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.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#285