##// END OF EJS Templates
hghave: require clang-format >= 6 due to output change
Yuya Nishihara -
r38725:b93dc48e default
parent child Browse files
Show More
@@ -452,8 +452,9 b' def has_pylint():'
452
452
453 @check("clang-format", "clang-format C code formatter")
453 @check("clang-format", "clang-format C code formatter")
454 def has_clang_format():
454 def has_clang_format():
455 return matchoutput("clang-format --help",
455 m = matchoutput('clang-format --version', br'clang-format version (\d)')
456 br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.")
456 # style changed somewhere between 4.x and 6.x
457 return m and int(m.group(1)) >= 6
457
458
458 @check("jshint", "JSHint static code analysis tool")
459 @check("jshint", "JSHint static code analysis tool")
459 def has_jshint():
460 def has_jshint():
General Comments 0
You need to be logged in to leave comments. Login now