tests/test-check-clang-format.t
author Augie Fackler <augie@google.com>
Mon, 12 Feb 2018 13:54:41 -0500
changeset 36131 ed4e68efebfe
parent 35669 39499bc31fcd
child 37186 0024961aa493
permissions -rw-r--r--
narrowrevlog: document excludeddir class and friends Differential Revision: https://phab.mercurial-scm.org/D2185

#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-blacklist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done