From b096078c282af7233062ba242a213e6f5574cfb1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 23 May 2022 20:40:53 +0300 Subject: switch from clang-format to uncrustify The output is close enough, and I like that uncrustify is a third-party tool, so people can install a single tool for formatting instead of having to lug around a whole toolchain. I fully expect to have to add settings to uncrustify.conf, but let's see how this goes. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ab48b33..9b6375c 100644 --- a/Makefile +++ b/Makefile @@ -97,8 +97,8 @@ apos.bin: init.bin kernel.bin cat init.bin kernel.bin > apos.bin format: - find arch lib common include -iname '*.[ch]' \ - -exec clang-format -i -style=file {} \+ + find arch lib common include -iname '*.[ch]' |\ + uncrustify -c uncrustify.conf --no-backup -F - .PHONY: docs docs: -- cgit v1.3