tests/test-check-clang-format.t
author Sushil khanchi <sushilkhanchi97@gmail.com>
Mon, 06 Aug 2018 10:03:57 +0530
changeset 38916 49b51f41fb46
parent 37184 0024961aa493
permissions -rw-r--r--
resolve: organize 'if confirm' conditionals Differential Revision: https://phab.mercurial-scm.org/D4123

#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