Show More
@@ -624,12 +624,13 def has_pylint(): | |||||
624 | return matchoutput("pylint --help", br"[Uu]sage:[ ]+pylint", True) |
|
624 | return matchoutput("pylint --help", br"[Uu]sage:[ ]+pylint", True) | |
625 |
|
625 | |||
626 |
|
626 | |||
627 |
@check("clang-format", "clang-format C code formatter ( |
|
627 | @check("clang-format", "clang-format C code formatter (11 <= … < 19)") | |
628 | def has_clang_format(): |
|
628 | def has_clang_format(): | |
629 | m = matchoutput('clang-format --version', br'clang-format version (\d+)') |
|
629 | m = matchoutput('clang-format --version', br'clang-format version (\d+)') | |
630 | # style changed somewhere between 10.x and 11.x |
|
630 | # style changed somewhere between 10.x and 11.x and after 19. | |
631 | if m: |
|
631 | if m: | |
632 |
re |
|
632 | major_version = int(m.group(1)) | |
|
633 | return 11 <= major_version < 19 | |||
633 | # Assist Googler contributors, they have a centrally-maintained version of |
|
634 | # Assist Googler contributors, they have a centrally-maintained version of | |
634 | # clang-format that is generally very fresh, but unlike most builds (both |
|
635 | # clang-format that is generally very fresh, but unlike most builds (both | |
635 | # official and unofficial), it does *not* include a version number. |
|
636 | # official and unofficial), it does *not* include a version number. |
General Comments 0
You need to be logged in to leave comments.
Login now