tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 06 Dec 2021 21:30:32 +0100
changeset 48488 dc2ef4b4d9a9
parent 37186 0024961aa493
permissions -rw-r--r--
upgrade: drop some dead code Everything done by this block is now done by earlier code. So we don't need it anymore. Differential Revision: https://phab.mercurial-scm.org/D11872

#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