Skip to content

Commit

Permalink
workflow: Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
djolertrk committed Dec 23, 2024
1 parent c419233 commit a614368
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
sudo ln -s ~/.local/bin/lit /usr/bin/llvm-lit
sudo apt-get install llvm-18-dev
sudo apt-get install llvm-18-tools
sudo apt-get install clang-format-18
- name: Check code formatting with clang-format
run: |
clang-format-18 --version
clang-format-18 -i src/*.c
clang-format-18 -i src/*.h
# Fail if the code got reformatted
git diff --exit-code
- name: After Prepare
run: |
Expand Down

0 comments on commit a614368

Please sign in to comment.