tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 23:52:55 +0200
changeset 42789 bf070a59546a
parent 37184 0024961aa493
permissions -rw-r--r--
revlog: move `nullid` early return sooner in `_revisiondata` Let us deal with the special case before we start dealing with more generic case.

#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