diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d008cd5f..2d3f5f73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/README.clang-format b/README.clang-format index 79f95796..f5654bfb 100644 --- a/README.clang-format +++ b/README.clang-format @@ -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