Allow for clang-format up to v20. (#12407)

This commit is contained in:
Nick Brassel 2021-03-31 09:33:26 +11:00 committed by GitHub
parent ae59a51193
commit 64551a8386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ def cformat_run(files, all_files):
"""
# Determine which version of clang-format to use
clang_format = ['clang-format', '-i']
for clang_version in [10, 9, 8, 7]:
for clang_version in range(20,6,-1):
binary = 'clang-format-%d' % clang_version
if which(binary):
clang_format[0] = binary