Skip to content

Commit

Permalink
Allow for clang-format up to v20. (qmk#12407)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Mar 30, 2021
1 parent ae59a51 commit 64551a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/cli/cformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64551a8

Please sign in to comment.