From 64551a8386d4c84c16c859b0bdbb05a623fe8e89 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Wed, 31 Mar 2021 09:33:26 +1100 Subject: Allow for clang-format up to v20. (#12407) --- lib/python/qmk/cli/cformat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python/qmk/cli') diff --git a/lib/python/qmk/cli/cformat.py b/lib/python/qmk/cli/cformat.py index 5aab31843c..1edb30553a 100644 --- a/lib/python/qmk/cli/cformat.py +++ b/lib/python/qmk/cli/cformat.py @@ -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 -- cgit v1.2.3