system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
318 stars 72 forks source link

Replace clang-format with uncrustify #442

Closed crawfxrd closed 2 months ago

crawfxrd commented 6 months ago

We can't use clang/LLVM for anything due to it not supporting the 8-bit architectures we use (MCS-51, AVR), so we are installing 500+ MiB of dependencies for a C/C++ formatting tool.

Replace it with uncrustify, which is only like 500 KiB.

There are a lot of configs (800+), so getting to work about the same as clang-format make take some time to go through all the options.

Examples of projects using it: