tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 27 Aug 2021 17:07:56 +0200
changeset 47929 03f57915e0ce
parent 37184 0024961aa493
permissions -rw-r--r--
dirstate-item: implement `added` in a simpler way We can simply use the underlying attribute. Differential Revision: https://phab.mercurial-scm.org/D11366

#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