mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 03:24:31 +00:00
CI: Switch to new clang-format
This commit is contained in:
parent
e9e0f2085d
commit
1bcde93efc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user