replace clag format with astyle

This commit is contained in:
Gabor Kiss-Vamosi
2020-02-26 19:46:58 +01:00
parent 13b1ec2e62
commit 9d1a1d51d0
4 changed files with 27 additions and 110 deletions

View File

@@ -1,13 +0,0 @@
clang-format-7 -style=file ../src/lv_core/*.c -i
clang-format-7 -style=file ../src/lv_draw/*.c -i
clang-format-7 -style=file ../src/lv_hal/*.c -i
clang-format-7 -style=file ../src/lv_misc/*.c -i
clang-format-7 -style=file ../src/lv_widgets/*.c -i
clang-format-7 -style=file ../src/lv_themes/*.c -i
clang-format-7 -style=file ../src/lv_core/*.h -i
clang-format-7 -style=file ../src/lv_draw/*.h -i
clang-format-7 -style=file ../src/lv_hal/*.h -i
clang-format-7 -style=file ../src/lv_misc/*.h -i
clang-format-7 -style=file ../src/lv_widgets/*.h -i
clang-format-7 -style=file ../src/lv_themes/*.h -i

26
scripts/code-format.cfg Normal file
View File

@@ -0,0 +1,26 @@
--style=kr
--indent=spaces=4
--indent-classes
--indent-switches
--indent-cases
--indent-preproc-block
--indent-preproc-define
--indent-col1-comments
--pad-oper
--unpad-paren
--align-pointer=middle
--align-reference=middle
--convert-tabs
--max-code-length=120
--break-after-logical
--break-closing-braces
--attach-closing-while
--min-conditional-indent=0
--max-continuation-indent=120
--mode=c
--lineend=linux
--recursive
--suffix=none
--preserve-date
--formatted
--exclude=lv_conf_internal.h

1
scripts/code-format.sh Executable file
View File

@@ -0,0 +1 @@
astyle --options=code-format.cfg "../src/*.c,*.h"