summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-05 12:04:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-05 12:04:44 +0100
commite72e63a6b5474d2109755ea1c32b37ff2fdcc6bf (patch)
treee05d8a0bf5f904c72f9f811d1248150e02986382 /misc
parent1e676e4a0a83765e0773071799a4e22cf46f7f11 (diff)
parent49f4860ce3e4122e17c869229701f7d86aa6956c (diff)
downloadredot-engine-e72e63a6b5474d2109755ea1c32b37ff2fdcc6bf.tar.gz
Merge pull request #85837 from akien-mga/clang-format-16
Style: Mark clang-format 16 as supported for pre-commit hook
Diffstat (limited to 'misc')
-rw-r--r--misc/hooks/README.md2
-rwxr-xr-xmisc/hooks/pre-commit-clang-format2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/hooks/README.md b/misc/hooks/README.md
index 0aaeff8ae3..573f8fe350 100644
--- a/misc/hooks/README.md
+++ b/misc/hooks/README.md
@@ -29,7 +29,7 @@ so they should work out of the box on Linux/macOS.
##### clang-format
- Download LLVM for Windows (version 13 or later) from
- <https://releases.llvm.org/download.html>
+ <https://github.com/llvm/llvm-project/releases>
- Make sure LLVM is added to the `PATH` during installation
##### black
diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format
index fd0213c175..e5cf0c4aa2 100755
--- a/misc/hooks/pre-commit-clang-format
+++ b/misc/hooks/pre-commit-clang-format
@@ -80,7 +80,7 @@ fi
# To get consistent formatting, we recommend contributors to use the same
# clang-format version as CI.
RECOMMENDED_CLANG_FORMAT_MAJOR_MIN="13"
-RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="15"
+RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="16"
if [ ! -x "$CLANG_FORMAT" ] ; then
message="Error: clang-format executable not found. Please install clang-format $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX."