Mercurial > public > mercurial-scm > hg-stable
view tests/test-check-clang-format.t @ 38955:49b51f41fb46
resolve: organize 'if confirm' conditionals
Differential Revision: https://phab.mercurial-scm.org/D4123
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Mon, 06 Aug 2018 10:03:57 +0530 |
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