tests/test-check-clang-format.t
author Boris Feld <boris.feld@octobus.net>
Wed, 24 Jan 2018 21:44:31 +0100
branchstable
changeset 35803 3ad3aaeb1134
parent 35669 39499bc31fcd
child 37186 0024961aa493
permissions -rw-r--r--
streamclone: use readexactly when reading stream v2 Yuya Nishihara pointed out that it is safer.

#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