tests/test-check-clang-format.t
author Kevin Bullock <kbullock@ringworld.org>
Sat, 05 May 2018 18:02:59 -0500
branchstable
changeset 37834 ed6808cfb116
parent 37184 0024961aa493
permissions -rw-r--r--
Added tag 4.6 for changeset 6614cac550ae

#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