CI: Switch to new clang-format

This commit is contained in:
Albert Astals Cid 2021-01-24 18:54:19 +01:00
parent e9e0f2085d
commit 1bcde93efc
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ clang_format:
image: debian:testing
before_script:
- apt-get update
- apt-get install --yes --no-install-recommends git clang-format-10
- apt-get install --yes --no-install-recommends git clang-format-11
script:
- find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format-10 -i {} \;
- find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format-11 -i {} \;
- git diff --exit-code

View File

@ -7,7 +7,7 @@ To get the clang-format warnings locally instead at CI time we recommend you
to copy the hooks/pre-commit to your .git
cp hooks/pre-commit .git/hooks/
We are using clang-format 10 on CI. Unfortunately clang-format is not totally
We are using clang-format 11 on CI. Unfortunately clang-format is not totally
compatible with older versions of itself. If CI gives you trouble but your local
clang-format disagrees, just apply the changes suggested by CI and then commit
with the --no-verify flag. If you get stuck, don't hesitate to ask the reviewer