ci: Update clang-format to version 21

Update the gh workflow to pin clang-format to version 21.

Mention the version we use in CONTRIBUTING.md.
And hint to the workflow file if we want to change it.
This commit is contained in:
Michael Vetter
2026-02-28 13:59:22 +01:00
parent 109347eea5
commit 91911b3e2f
2 changed files with 3 additions and 3 deletions

View File

@@ -55,9 +55,9 @@ jobs:
run: |
grep -P 'auto_(char|gchar|gcharv|gerror|guchar|jid|sqlite|gfd|FILE)[\w *]*;$' -r src && exit -1 || true
- name: Run clang-format
uses: jidicula/clang-format-action@v4.11.0
uses: jidicula/clang-format-action@v4.15.0
with:
clang-format-version: '16'
clang-format-version: '21'
check-path: 'src'
spell-check: