Mercurial > hg
changeset 34696:15b561fffde5
hghave: add a check for clang-format
Differential Revision: https://phab.mercurial-scm.org/D1068
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 14 Sep 2015 14:16:31 -0400 |
parents | e178fcaa3933 |
children | ce77b0563228 |
files | tests/hghave.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave.py Thu Oct 05 14:16:20 2017 -0400 +++ b/tests/hghave.py Mon Sep 14 14:16:31 2015 -0400 @@ -439,6 +439,11 @@ br"Usage: pylint", True) +@check("clang-format", "clang-format C code formatter") +def has_clang_format(): + return matchoutput("clang-format --help", + r"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.") + @check("pygments", "Pygments source highlighting library") def has_pygments(): try: