tests/test-check-clang-format.t
author Simon Sapin <simon.sapin@octobus.net>
Tue, 13 Jul 2021 09:44:44 +0200
changeset 47677 da1c0cd68d53
parent 37184 0024961aa493
permissions -rw-r--r--
dirstate-v2: shrink on-disk path lengths to 16-bits Differential Revision: https://phab.mercurial-scm.org/D11091

#require clang-format test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done