view tests/test-check-clang-format.t @ 47178:63286e0886a6

vfs: Fix deprecation warning in Python 3.10 (issue6520) Differential Revision: https://phab.mercurial-scm.org/D10710
author Karthikeyan Singaravelan <tir.karthi@gmail.com>
date Fri, 14 May 2021 10:01:29 +0000
parents 0024961aa493
children
line wrap: on
line source

#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