Skip to content

Commit

Permalink
try revert to clang-format-12
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 6, 2024
1 parent 9bd1da1 commit 0f5469e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
sudo apt update
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18
sudo apt install clang-tidy-18 clang-format-18
sudo apt install clang-tidy-18 clang-format-12
- name: Static analysis
working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/
Expand All @@ -61,6 +61,6 @@ jobs:
- name: Format check
working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/
run: |
clang-format-18 -i -fallback-style=none -style=file --verbose src/*.[ch]
clang-format-12 -i -fallback-style=none -style=file --verbose src/*.[ch]
modified="$(git status --porcelain --untracked-files=no)"
if [ -n "$modified" ]; then echo "Please format code properly."; exit 1; fi
1 change: 0 additions & 1 deletion stm32/libcanard/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ CheckOptions:
value: '99'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
FormatStyle: file
...

0 comments on commit 0f5469e

Please sign in to comment.