mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
11 lines
334 B
Perl
11 lines
334 B
Perl
|
#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
|