tests/test-check-clang-format.t
author Anton Shestakov <av6@dwimlabs.net>
Thu, 26 Oct 2017 11:58:55 +0800
branchstable
changeset 34927 c2695cbb5fb1
parent 34834 2e8477059d4f
child 35669 39499bc31fcd
permissions -rw-r--r--
makefile: put format-c into .PHONY targets

#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