summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-30 22:45:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 21:51:00 +0100
commitfb220d567861cf27424e1196702a47fe7e1a0928 (patch)
tree9b6df08dd181f72e2e5371db6e00cc75d08640df /Meta
parentbbe787a0afd51307cdac2c023895c19df31519ca (diff)
downloadserenity-fb220d567861cf27424e1196702a47fe7e1a0928.zip
Meta+Docs+CI: Require clang-format >= 11
Diffstat (limited to 'Meta')
-rwxr-xr-xMeta/lint-clang-format.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/Meta/lint-clang-format.sh b/Meta/lint-clang-format.sh
index 2359639071..00a34c228e 100755
--- a/Meta/lint-clang-format.sh
+++ b/Meta/lint-clang-format.sh
@@ -6,17 +6,17 @@ script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "${script_path}/.." || exit 1
CLANG_FORMAT=false
-if command -v clang-format-10 >/dev/null 2>&1 ; then
- CLANG_FORMAT=clang-format-10
+if command -v clang-format-11 >/dev/null 2>&1 ; then
+ CLANG_FORMAT=clang-format-11
elif command -v clang-format >/dev/null 2>&1 ; then
CLANG_FORMAT=clang-format
- if ! "${CLANG_FORMAT}" --version | grep -qF ' 10.' ; then
- echo "You are using '$("${CLANG_FORMAT}" --version)', which appears to not be clang-format 10."
+ if ! "${CLANG_FORMAT}" --version | grep -qF ' 11.' ; then
+ echo "You are using '$("${CLANG_FORMAT}" --version)', which appears to not be clang-format 11."
echo "It is very likely that the resulting changes are not what you wanted."
fi
else
- echo "clang-format-10 is not available. Either skip this script, or install clang-format-10."
- echo "(If you install a package 'clang-format', please make sure it's version 10.)"
+ echo "clang-format-10 is not available. Either skip this script, or install clang-format-11."
+ echo "(If you install a package 'clang-format', please make sure it's version 11.)"
exit 1
fi