tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 27 Feb 2024 15:33:21 +0100
changeset 51518 c7e81615b5c4
parent 37184 0024961aa493
permissions -rw-r--r--
branchcache: add some blank line in a test This helps each section to stand out.

#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