Skip to content
Snippets Groups Projects
Commit b93dc48e authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

hghave: require clang-format >= 6 due to output change

parent 992e1082
No related branches found
No related tags found
No related merge requests found
......@@ -452,8 +452,9 @@
@check("clang-format", "clang-format C code formatter")
def has_clang_format():
return matchoutput("clang-format --help",
br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.")
m = matchoutput('clang-format --version', br'clang-format version (\d)')
# style changed somewhere between 4.x and 6.x
return m and int(m.group(1)) >= 6
@check("jshint", "JSHint static code analysis tool")
def has_jshint():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment