ec icon indicating copy to clipboard operation
ec copied to clipboard

Replace clang-format with uncrustify

Open crawfxrd opened this issue 1 year ago • 0 comments

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.

  • Debian 12, Ubuntu 22.04, Ubuntu 22.04: uncrustify 0.72.0 (config.txt)
  • Alpine 3.19.1: uncrustify 0.78.1 (config.txt)

Examples of projects using it:

crawfxrd avatar Mar 01 '24 19:03 crawfxrd