Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace clang-format with uncrustify #442

Open
crawfxrd opened this issue Mar 1, 2024 · 0 comments
Open

Replace clang-format with uncrustify #442

crawfxrd opened this issue Mar 1, 2024 · 0 comments

Comments

@crawfxrd
Copy link
Member

crawfxrd commented Mar 1, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant