Include clang-format config and corresponding makefile target

This commit is contained in:
Imbus 2025-12-28 07:07:36 +01:00
parent 99be9826ae
commit a1c041481c
2 changed files with 24 additions and 0 deletions

View file

@ -102,5 +102,10 @@ disasm: main.elf
cpp:
$(COMPILE) -E $(SOURCEDIR)/main.c
format:
find . -type f \( -name '*.c' -o -name '*.h' \) -exec clang-format -i {} +
# include generated header dependencies
-include $(BUILDDIR)/$(OBJECTS:.o=.d)
.PHONY: format