Format code
This commit is contained in:
parent
9da294b68c
commit
03ad9414dc
2
etc/scripts/format-code.bat
Normal file → Executable file
2
etc/scripts/format-code.bat
Normal file → Executable file
@ -9,7 +9,7 @@ title Code Formatter
|
|||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
|
|
||||||
:: Style and format the source code recursively
|
:: Style and format the source code recursively
|
||||||
astyle --pad-oper --pad-first-paren-out --align-pointer=type --remove-brackets --convert-tabs --max-code-length=80 --style=google --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c
|
astyle --style=google --indent=spaces --align-pointer=type --remove-brackets --convert-tabs --close-templates --max-code-length=80 --max-instatement-indent=50 --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c
|
||||||
|
|
||||||
:: Notify the user that we have finished
|
:: Notify the user that we have finished
|
||||||
echo.
|
echo.
|
||||||
|
2
etc/scripts/format-code.sh
Normal file → Executable file
2
etc/scripts/format-code.sh
Normal file → Executable file
@ -1,2 +1,2 @@
|
|||||||
# Style and format recursively
|
# Style and format recursively
|
||||||
astyle --pad-oper --pad-first-paren-out --align-pointer=type --remove-brackets --convert-tabs --max-code-length=80 --style=google --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c
|
astyle --style=google --indent=spaces --align-pointer=type --remove-brackets --convert-tabs --close-templates --max-code-length=80 --max-instatement-indent=50 --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user