Solve code issues that block running clang-format on our code.

There are some aspects of our code that confuse clang-format, or produce bad output. In nearly all cases, this is a sign of bad code.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information