tests/test-check-clang-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 28 Mar 2018 15:30:09 -0700
changeset 37144 eb4a23382e18
parent 35669 39499bc31fcd
child 37186 0024961aa493
permissions -rw-r--r--
locate: avoid using "rev" variable name for nodeid Also, drop silly "ctx = repo[ctx.node()]". Differential Revision: https://phab.mercurial-scm.org/D2961

#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