tests/test-check-clang-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 19 Oct 2024 00:57:52 -0400
changeset 52026 e4961a4b4300
parent 37184 0024961aa493
permissions -rw-r--r--
contrib: drop python 3.7 from the Windows dependency installer script I'm tempted to drop 3.8 too, since we use 3.9 on Windows.

#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