tests/test-check-clang-format.t
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 11 Nov 2017 17:07:33 -0800
changeset 35071 80e9b85d96e5
parent 34834 2e8477059d4f
child 35669 39499bc31fcd
permissions -rw-r--r--
bundlerepo: use suffix variable It looks like the refactor in 702a26fec3e2 attempted to establish this method argument but failed to use it. My editor caught it. Differential Revision: https://phab.mercurial-scm.org/D1373

#require clang-format test-repo

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

  $ cd "$TESTDIR"/..
  $ for f in `testrepohg files 'set:(**.c 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
  > done