#6106 Use clang-format on AppFwk

This commit is contained in:
Magne Sjaastad
2020-06-19 07:59:10 +02:00
parent e3960f13f1
commit e2ef6a910b
2 changed files with 88 additions and 2 deletions
+9 -2
View File
@@ -11,13 +11,20 @@ jobs:
sudo apt install clang-format-6.0
clang-format-6.0 --version
- uses: actions/checkout@v2
- name: Check format
- name: Check format - ApplicationCode
run: |
cd ApplicationCode
find -name "*.h" -o -name "*.cpp" -o -name "*.inl" | xargs clang-format-6.0 -i
find -name *.h -o -name *.cpp -o -name *.inl | xargs clang-format-6.0 -i
git diff
- name: Check format - AppFwk
run: |
cd Fwk/AppFwk
find -name *.h -o -name *.cpp -o -name *.inl | grep -v gtest | xargs clang-format-6.0 -i
git diff
- uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Fixes by clang-format'
title: 'Fixes by clang-format'