tests/test-check-clang-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 22 Nov 2019 23:58:25 -0500
changeset 43789 27c6d6f53d46
parent 37186 0024961aa493
permissions -rw-r--r--
exchange: eliminate some bytes.format() calls Differential Revision: https://phab.mercurial-scm.org/D7511

#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