Auto Formatting with clang-format-6.0 (#727)

* Add clang-format

* Auto-format AlphaFilter and RingBuffer

* Update to tab=8spaces

* Allow for 120 width
This commit is contained in:
kritz
2020-01-23 20:56:10 +11:00
committed by Paul Riseborough
parent dbf0bd43e8
commit ed916c8006
6 changed files with 206 additions and 34 deletions
+15
View File
@@ -0,0 +1,15 @@
name: Format Checks
on: [push, pull_request]
jobs:
format_checks:
runs-on: ubuntu-latest
container: px4io/px4-dev-clang:2019-10-24
steps:
- uses: actions/checkout@v1
- name: install clang-format-6.0
run: apt install -y clang-format-6.0
- name: check_format
run: ./tools/format.sh 0