tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 24 Aug 2021 21:11:42 +0200
changeset 47913 3911c61f09c6
parent 37184 0024961aa493
permissions -rw-r--r--
dirstate: drop the deprecated `remove` method The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11348

#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