tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 05 Apr 2024 22:47:44 +0200
changeset 51585 c11d21faa73c
parent 37184 0024961aa493
permissions -rw-r--r--
phases: introduce a performant efficient way to access revision in a set This will be useful in the next changesets.

#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