Add "make format" target to invoke clang-format.

This commit is contained in:
Rui Ueyama 2018-08-26 04:55:47 +00:00
parent a05a09d3cb
commit 4edcaa7271
1 changed files with 4 additions and 1 deletions

View File

@ -22,4 +22,7 @@ test: 9cc test/test.c
clean:
rm -f 9cc *.o *~ tmp* a.out test/*~
.PHONY: test clean
format:
clang-format -i *.c *.h
.PHONY: test clean format