Patchwork D1167: makefile: add target to apply clang-format in-place

login
register
mail settings
Submitter phabricator
Date Oct. 18, 2017, 3:51 p.m.
Message ID <9d7b4ea299d81f83ddf8471af77e9e3b@localhost.localdomain>
Download mbox | patch
Permalink /patch/25171/
State Not Applicable
Headers show

Comments

phabricator - Oct. 18, 2017, 3:51 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2bf152128d59: makefile: add target to apply clang-format in-place (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1167?vs=2949&id=2976

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

AFFECTED FILES
  Makefile

CHANGE DETAILS




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

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,10 @@ 
 check-code:
 	hg manifest | xargs python contrib/check-code.py
 
+format-c:
+	clang-format --style file -i \
+	  `hg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'`
+
 update-pot: i18n/hg.pot
 
 i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext