tests/test-check-clang-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 10 Jan 2019 13:36:25 -0800
changeset 41226 0f2b8d51bfdf
parent 37186 0024961aa493
permissions -rw-r--r--
narrow: include journal.narrowspec in transaction journal We had missed this file before, which led to it lying around after the transaction completed. Differential Revision: https://phab.mercurial-scm.org/D5556

#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