From patchwork Wed Jan 17 21:40:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1874: formatting: enforce clang-format on all .cc files as well as .c files From: phabricator X-Patchwork-Id: 26830 Message-Id: <0e590ad839ef748a78719b48834c6d29@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Wed, 17 Jan 2018 21:40:11 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGcb55f93bb29c: formatting: enforce clang-format on all .cc files as well as .c files (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1874?vs=4855&id=4860 REVISION DETAIL https://phab.mercurial-scm.org/D1874 AFFECTED FILES Makefile tests/test-check-clang-format.t CHANGE DETAILS To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/tests/test-check-clang-format.t b/tests/test-check-clang-format.t --- a/tests/test-check-clang-format.t +++ b/tests/test-check-clang-format.t @@ -3,7 +3,7 @@ $ . "$TESTDIR/helpers-testrepo.sh" $ cd "$TESTDIR"/.. - $ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do + $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do > clang-format --style file $f > $f.formatted > cmp $f $f.formatted || diff -u $f $f.formatted > rm $f.formatted diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -124,7 +124,7 @@ format-c: clang-format --style file -i \ - `hg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` + `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` update-pot: i18n/hg.pot