build: bump clang tools to 20 (#7573)

* build: bump to clang-format-20

* build: bump to clang-tidy-20

* chore: revert edc59ba5d8
This commit is contained in:
Yat Ho
2025-12-02 13:18:02 +08:00
committed by GitHub
parent 05aef3e787
commit 9dd9aab902
55 changed files with 718 additions and 601 deletions

View File

@@ -40,10 +40,10 @@ find_cfiles() {
! \( $(get_find_path_args $(trim_comments .clang-format-ignore)) \) "$@"
}
# We're targeting clang-format version 17 and other versions give slightly
# different results, so prefer `clang-format-17` if it's installed.
# We're targeting clang-format version 20 and other versions give slightly
# different results, so prefer `clang-format-20` if it's installed.
clang_format_exe_names=(
'clang-format-17'
'clang-format-20'
'clang-format'
)
for name in ${clang_format_exe_names[@]}; do