4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-07 16:29:33 +00:00

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

@ -32,7 +32,7 @@ clang_format:
image: debian:testing image: debian:testing
before_script: before_script:
- apt-get update - 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: 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 - git diff --exit-code

@ -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 to copy the hooks/pre-commit to your .git
cp hooks/pre-commit .git/hooks/ 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 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 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 with the --no-verify flag. If you get stuck, don't hesitate to ask the reviewer