D1068: hghave: add a check for clang-format

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat Oct 14 07:47:20 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG15b561fffde5: hghave: add a check for clang-format (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1068?vs=2725&id=2734

REVISION DETAIL
  https://phab.mercurial-scm.org/D1068

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -439,6 +439,11 @@
                        br"Usage:  pylint",
                        True)
 
+ at 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:



To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list