Closed abaire closed 3 years ago
I tried to minimize changes, but using clang-format 10.0 has some rougher grained options that lead to a few compromises (e.g., never allowing {}
on a single line because it'll also do that in places that end up looking unusual, in my opinion)
Note: I chose 10.0 as the lowest common denominator because it's the version easily available on WSL2. I had initially used 12.0.1 on macOS and it looks like Debian/Ubuntu have 12.x in the latest releases as well.
This was an eye opener, for sure. I write ugly code! :joy:
Thanks! :+1:
:) Without automated style enforcement I think inconsistencies slip through no matter how careful we are. I'll send you a followup w/ a pre-commit hook to run the formatter as well and will look into a git workflow to check it server-side.
Applies the
.clang-format
file added in #95