Skip to content
Snippets Groups Projects
Commit 2bf15212 authored by Augie Fackler's avatar Augie Fackler
Browse files

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

This makes it easy to reformat files after you finish editing them.

Differential Revision: https://phab.mercurial-scm.org/D1167
parent 85a2db47
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment