Skip to content

Commit

Permalink
update clang format (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Nov 25, 2023
1 parent d086d32 commit b076861
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ jobs:
runs-on: ubuntu-22.04

steps:
- run: clang-format --version
- run: sudo apt install clang-format-15

- run: clang-format-15 --version

- name: checkout
uses: actions/checkout@v2

- name: apply clang-format
run: |
FILES=$( find . -type f \( -iname \*.h -o -iname \*.cpp \) )
clang-format-12 --style=file -i $FILES
clang-format-15 --style=file -i $FILES
- run: git diff --exit-code --name-only

0 comments on commit b076861

Please sign in to comment.