added clang-format file and make pretty. Removed previous indent tools.

This commit is contained in:
Steve Karg
2019-10-24 16:22:16 -05:00
parent 1879d4c76f
commit da91a11454
10 changed files with 61 additions and 325 deletions
+5
View File
@@ -122,6 +122,11 @@ mstpsnap: ports/linux/mstpsnap.mak
bdk-atxx4-mstp: ports/bdk-atxx4-mstp/Makefile
$(MAKE) -s -C ports/bdk-atxx4-mstp clean all
pretty:
find ./src -iname *.h -o -iname *.c -exec clang-format -i -style=file -fallback-style=none {} \;
find ./include -iname *.h -o -iname *.c -exec clang-format -i -style=file -fallback-style=none {} \;
find ./demo -iname *.h -o -iname *.c -exec clang-format -i -style=file -fallback-style=none {} \;
clean:
$(MAKE) -s -C lib clean
$(MAKE) -s -C demo clean