tests/test-check-clang-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 27 Nov 2020 15:39:27 -0500
changeset 45967 a2104b9b1787
parent 37186 0024961aa493
permissions -rw-r--r--
dispatch: quote the extension when printing the bug report I think this reads better in the wall of text. Differential Revision: https://phab.mercurial-scm.org/D9438

#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