tests/test-check-clang-format.t
author Anton Shestakov <av6@dwimlabs.net>
Wed, 17 Oct 2018 22:31:34 +0800
changeset 40335 01bdf7294274
parent 37184 0024961aa493
permissions -rw-r--r--
zsh_completion: fix a couple of flags still not being perfect Differential Revision: https://phab.mercurial-scm.org/D5141

#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