This adds initial code style guide. Only section on code formatting is written, other sections to be added later. Also adds scripts to format code using astyle.
9 lines
203 B
Bash
9 lines
203 B
Bash
#!/bin/bash
|
|
# Runs astyle with parameters which should be checked in a pre-commit hook
|
|
astyle \
|
|
--style=otbs \
|
|
--indent=spaces=4 \
|
|
--convert-tabs \
|
|
--keep-one-line-statements \
|
|
--pad-header \
|
|
"$@"
|