tests/test-check-clang-format.t
author Boris Feld <boris.feld@octobus.net>
Mon, 09 Oct 2017 11:40:15 +0200
changeset 35627 882998f08c3c
parent 34834 2e8477059d4f
child 35669 39499bc31fcd
permissions -rw-r--r--
pylint: split command line argument on multiple lines This clarify the important line in that configuration. Differential Revision: https://phab.mercurial-scm.org/D1831

#require clang-format test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done