tests/test-check-clang-format.t
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 02 Oct 2018 13:12:56 -0700
changeset 39993 ec3c06a1c554
parent 37186 0024961aa493
permissions -rw-r--r--
cext: use modern buffer protocol in mpatch_flist() Differential Revision: https://phab.mercurial-scm.org/D4841

#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