tests/test-check-clang-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 23 Jan 2020 13:10:48 -0800
changeset 44234 50e7ce1f96d1
parent 37186 0024961aa493
permissions -rw-r--r--
merge with stable

#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