Skip to content

Commit

Permalink
test higher clang format version
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDiederichs committed Feb 4, 2025
1 parent 31a1d0b commit 35d0849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/clang-format-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:

# Installing clang-format (adjust version as needed)
- name: Install clang-format
run: sudo apt-get update && sudo apt-get install -y clang-format-14
run: sudo apt-get update && sudo apt-get install -y clang-format-18

- name: Check formatting
run: |
# Specify file extensions to be checked
FILES=$(git ls-files '*.cpp' '*.h' '*.cu' '*.cuh' '*.hh' '*.cc' '*.icc')
# check version
clang-format-14 --version
clang-format-18 --version
# '-n' checks if files need reformatting
# '--Werror' throws an error if formatting is incorrect
clang-format-14 -style=file -n --Werror $FILES
clang-format-18 -style=file -n --Werror $FILES

0 comments on commit 35d0849

Please sign in to comment.