tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 06 Mar 2024 12:07:31 +0100
changeset 51528 88b0e07dd2cd
parent 37184 0024961aa493
permissions -rw-r--r--
branchcache: show the cache file content in test-branches-obsoletes.t This help to track the changes in format between v2 and v3.

#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